a = gets.chomp.to_i minutes = a * 60 / 100 hour = minutes / 60 minutes_only = minutes % 60 puts format("%02d:%02d", hour + 10, minutes_only)