a = gets.to_i t = Time.utc(1, 1, 1, 10, 0) t += a*60*60/100 puts t.strftime("%H:%M")