#include int sign(int val) { return (val>0) - (val<0); } int max(int a, int b) { return (a < b)? b:a; } int main() { int t, p[2]; int pos[2] = {0}; std::cin >> t >> p[0] >> p[1]; if((t < max(p[0], p[1])) || ((p[0] == 0) && (p[1] == 0) && (t == 1))) { std::cout << "NO" << std::endl; return 0; } if(t == 1) { if(p[1]) std::cout << ">"; if(p[0]) std::cout << "^"; std::cout << std::endl; return 0; } p[0]--; p[1]--; std::cout << "YES" << std::endl; while((pos[0] != p[0]) || (pos[1] != p[1])) { char out[3] = {0}; int i = 0; switch(sign(p[1] - pos[1])) { case 1: out[i] = '>'; pos[1]++; i++; break; case -1: out[i] = '<'; pos[1]--; i++; break; default:; } switch(sign(p[0] - pos[0])) { case 1: out[i] = '^'; pos[0]++; break; case -1: out[i] = 'v'; pos[0]--; break; default:; } t--; std::cout << out << std::endl; } int i; for(i = 0; t > 1; i++) { t--; std::cout << (((i % 2) == 0)? ">":"<") << std::endl; } std::cout << (((i % 2) == 0)? ">^":"^") << std::endl; return 0; }