#include #define rep(i,a,b) for(int i=int(a);i> T >> Y >> X; if(T < max(Y,X) || T == 1 && max(Y,X) == 0){ cout << "NO" << endl; return 0; } cout << "YES" << endl; int ny = 0,nx = 0; string str[] = {"^", ">","v","<"}; if(max(Y,X) == 0){ cout << "^\n>\nv<\n"; T -= 3; }else{ if((T - max(Y,X)) % 2){ if(Y == 0){ cout << str[0] << endl; ny = 1; }else{ cout << str[1] << endl; nx = 1; } T--; } while(max(Y - ny,X - nx)){ if(ny != Y){ cout << (ny < Y ? str[0] : str[2]); ny += (ny < Y ? 1 : -1); } if(nx != X){ cout << (nx < X ? str[1] : str[3]); nx += (nx < X ? 1 : -1); } cout << endl; } } rep(i,0,(T - max(Y,X)) / 2){ cout << ">\n<\n"; } }