The present invention relates to compounds of formula I, their N-oxides, tautomers, prodrugs and their pharmaceutically acceptable salts and their use for the manufacture of a medicament, wherein in formula I the variables R1, R2, R3, R4 and R5 are as defined in the claims, and X is C—R6 or N and Y is C—R7 or N, wherein R6 and R7 are especially hydrogen, Halogen, alkoxy, haloalkoxy and the like. The compounds of formula I, their N-oxides, tautomers, prodrugs and pharmaceutically acceptable salts are inhibitors of phosphodiesterase type 10A and thus have medical disorders selected from neurological and psychiatric disorders. Suitable for treating or inhibiting, ameliorating symptoms associated with such disorders, as well as reducing the risk of such disorders.本発明は、式Iの化合物、これらのN-オキシド、互変異性体、プロドラッグおよび医薬として許容される塩ならびに薬剤の製造のためのこれらの使用に関し、式Iにおいて、変数R1、R2、R3、R4およびR5は特許請求の範囲で定義されるとおりであり、ならびにXはC-R6またはNであり、YはC-R7またはNであり、ここでR6およびR7は、中でも特に水素、ハロゲン、アルコキシ、ハロアルコキシ等である。式Iの化合物、これらのN-オキシド、互変異性体、プロドラッグおよび医薬として許容される塩は、ホスホジエステラーゼ10A型の阻害剤であり、従って神経障害および精神障害から選択される医学的障害を治療または抑制する、このような障害に関連する症状を改善する、ならびにこのような障害の危険度を低減するのに適する。