The present invention provides an agent for the prophylaxis or treatment of autoimmune diseases (e.g., psoriasis, rheumatoid arthritis, inflammatory bowel disease, Sjogren's syndrome, Behcet's disease, multiple sclerosis, systemic lupus erythematosus etc.) and the like, which has a superior Tyk2 inhibitory action.
The present invention relates to a compound represented by the formula
wherein each symbol is as defined in the specification, or a salt thereof.
There are provided compounds of the formula
wherein X, Y, R
1
, R
2
, R
3
, R
3
, R
4
, R
5
, R
6
and R
7
are as described herein
and enantiomers and pharmaceutically acceptable salts and esters thereof. The compounds are useful as anticancer agents.