A hydrocarbon (X) having formula C5H10 reacts with HI to give (Y) which on reacting with alc. KOH forms (Z). The hydrocarbon is