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