This invention provides a compound of the formula (I): a pharmaceutically acceptable salt or solvate thereof, wherein R 1 is substituted or unsubstituted alkyl or the like, R 2 is hydrogen or substituted or unsubstituted alkyl, Ring A is monocyclic or bicyclic aromatic heterocycle, R 3 is substituted or unsubstituted aryl, substituted or unsubstituted heteroaryl or substituted or unsubstituted heterocycle, R 4 is halogen, cyano, substituted or unsubstituted alkyl, substituted or unsubstituted cycloalkyl or the like, m is an integer between 0 and 2, n is an integer between 0 and 5, R is halogen, oxo, cyano, nitro, substituted or unsubstituted alkyl or the like, and p is an integer between 0 and 2 as novel compounds having NPY Y5 antagonistic activity.