T=0..59
c=8
puts 9394,a=?+,0,1,3,?<,2,3,3,[0,1].map{|x|[a,3,x,x]+T.map{[a,v=x+4,v,v,a,3,v,6,[a,6,6,6]*(59-_1),?<,6,x,c+=1,a,v,c,v]}},T.map{|t|[a,2,2,2]+(1..t).map{[a,39+t-_1,98+_1,5,?<,3,5,5,a,2,5,2]}}