Compounds comprising formula (I) or a pharmaceutically acceptable salt or a prodrug thereof, are disclosed, wherein Y, A, and B are as described. Methods, compositions, and medicaments for the treatment of glaucoma, ocula hypertension and inflammatory bowel disease, and for the stimulation of hair growth are also disclosed.