These compounds inhibit the pde10a and can be used as medicines.Claim 1: a compound of the formula (1) or (2) which is alquileno c u2081 u208b u2084: B, alquenileno c u2082 u208b u2084, alquinileno c u2082 u208b u2084, cycloalkyl c u2083 u208b u2085; r u00b9 and R u00b2 are chosen independently from Hydrogen, alkyl, optionally substituted cycloalkyl c u2081 u208b u2087 c u2083 u208b u2085; Hidroxialquilo c u2081 u208b u2087, c u2081 u208b u2087 alkoxyalkyl esters, haloalquilo c u2081 u208b u2087 c u2083 u208b u2085, cycloalkyl, r u00b9 and R u00b2 along with the nitrogen Atom to which they are UnitedForm a azaespirocicloalquilo, a bicyclic Ring or a heterocicloalquilo which may be substituted for 1 to 3 times with substituents selected from the group consisting of Independence c u2081 u208b u2087 alkoxyalkyl Esters c u2081 u208b u2087 Halogen, alkyl, Hydroxy, alkoxy alkyl c u2081 u208b u2087, c u2081 u208b u2087, h Aloalquilo c u2081 u208b u2087, hydroxyl, and oxo - nr u2079r u00b9 u2070; r u00b3 is chosen from Hydrogen, c u2083 u208b u2085 alkoxyalkyl Esters c u2081 u208b u2087, cycloalkyl,Haloalquilo c u2081 u208b u2087, heterocicloalquilo, - (ch u2082) u2080, u2081 u2082 - aryl, alkyl and alkoxy optionally substituted by c u2081 u208b u2087 c u2081 u208b u2087 cycloalkyl optionally substituted heteroaryl c u2083 u208b u2085; optionally replaced r u2074 choose between 1 to 3 times by substituents has chosen between L u00f3geno, alkyl c u2081 u208b u2087, hidroxialquilo c u2081 u208b u2087, haloalcoxi c u2081 u208b u2087, c u2081 u208b u2087 Halo alkyl, cycloalkyl c u2083 u208b u2085, cyano, amino, Nitro, or r u2076 - C (o) - r u2077,- so u2082r u2078, c u2081 u208b u2082 alkoxy optionally substituted by alkoxy c u2081 u208b u2082, heterocicloalquilo; r u2076 and r u2078 are chosen from alkyl c u2081 u208b u2087; r u2077 choose between heterocicloalquilo; r u2079 and r u00b9 u2070 are chosen independently from each c u2081 u208b u2087 Hydrogen, alkyl, - C (o) -