URI -- 1259 (Even and Odd)

Solution :