m = gets.to_i/10*6 h = 10 + m/60 m %= 60 puts "#{sprintf("%02d", h)}:#{sprintf("%02d", m)}"