a=:+
puts [6484,a,0,1,3,:<,2,3,3]+[0,1].map{|x|[a,x,3,x]+(0..29).map{|t|v=x+4;u=x*60+9+t;[a,v,v,v,a,v,3,6,*[a,6,6,6]*(29-t),:<,6,x,u,a,v,u,v]}}+(0..59).map{|t|[a,2,2,2]+(0...t).map{[a,8+t-_1,69+_1,5,:<,3,5,6,a,2,6,2]}}