require "date" t = gets.chomp t2 = DateTime.strptime(t, "%H:%M") puts "#{t2.hour}:#{t2.min + 5.min}"