moku = gets.chomp.to_i zikan2 = moku / 100 b = zikan2 + 10 zikan = moku / 100.0 fun = zikan * 60 c = fun % 60 d = c.to_i e = format("%02d", d) puts "#{b}:#{e}"