The present invention relates to a compound of formula I. The compounds are immunological , inflammatory , autoimmune , allergic and immunological disorders - TYK2 are useful as inhibitors for the treatment or prevention of diseases mediated . The invention also relates to a pharmaceutical composition , as well as their use as a medicine containing the compound . R & lt I & gt Wherein , R, R 1 , X 1 to X 5 have the meanings mentioned in the specification and claims .본 발명은 하기 화학식 I의 화합물에 관한 것이다. 상기 화합물은 면역학적, 염증성, 자가면역, 알레르기성 장애 및 면역학적-매개 질환의 치료 또는 예방을 위한 TYK2 억제제로서 유용하다. 본 발명은 또한 상기 화합물을 포함하는 제약 조성물, 뿐만 아니라 의약으로서의 그의 용도에 관한 것이다.<화학식 I>상기 식에서, R, R1, X1 내지 X5는 명세서 및 특허청구범위에 언급된 의미를 갖는다.