a=gets.to_i; hour= a / 100 +10; min= a % 100 * 6 / 10; if min < 10 then print(hour,":0",min,"\n"); else print(hour,":",min,"\n"); end