#!/usr/bin/ruby $lineno=0 def output(s) puts s $lineno+=1 end t,a,b=gets.split.map &:to_i if [a,b].max>t || (t==1 and a==0 and b==0) puts :NO else puts :YES if a==0 if (b-t)%2>0 output '^' output 'v>' b-=1 end elsif b==0 if (a-t)%2>0 output '>' output '<^' a-=1 end elsif (t-a-b)%2==0 output '>' output '^' a-=1 b-=1 end n=[a,b].min n.times{ output '^>' } a-=n b-=n a.times{ output '^' } b.times{ output '>' } ((t-$lineno)/2).times{ output '^' output 'v' } end