require "date" t = gets.chomp time2 = Date.strptime(t,"%Y/%m/%d") puts time2.next_day(2)