input = gets.to_i a = input / 100 b = input % 100 c = (b.to_f * 0.1 * 6).to_i if c >= 10 puts "#{a+10}:#{c}" else puts puts "#{a+10}:0#{c}" end