#include #include using namespace std; int main() { int t, a, b; cin >> t >> a >> b; int chebyshev = max(a, b); if (t < chebyshev) { cout << "NO" << endl; return 0; } if (a == 0 && b == 0 && t == 1) { cout << "NO" << endl; return 0; } cout << "YES" << endl; int remain = t; int y = 0, x = 0; if ((remain - chebyshev) % 2 == 1) { if (a == 0 && b == 0) { cout << ">" << endl << "^" << endl << " 0 && b > 0) { cout << ">" << endl << "^" << endl; ++y; ++x; remain -= 2; } else if (a > 0) { cout << ">^" << endl << "<" << endl; ++y; remain -= 2; } else { cout << ">^" << endl << "v" << endl; ++x; remain -= 2; } } for (; y < a && x < b; ++y, ++x) { cout << ">^" << endl; --remain; } for (; y < a; ++y) { cout << "^" << endl; --remain; } for (; x < b; ++x) { cout << ">" << endl; --remain; } for (; remain > 0; remain -= 2) { cout << ">" << endl << "<" << endl; } return 0; }