abort unless gets.chomp=='1' t = Time.now clock=Time::local(1,1,1,2,2) while Time.now-t < 2 clock+=24*60*60 exit unless clock.hour==2 end puts 0