#include #include #include #include using namespace std; int main() { int t; int x; int y; cin >> t >> x >> y; if (t < x || t < y) { cout << "NO"; return 0; } if (1) { cout << "YES" << endl; for (int i = 0; i < t - 2; i++)//두단계 전까지 간다 { if (x > 0) { x--; cout << ">";//한칸가줬다 } else//x가 0 { x++; cout << "<"; } if (y > 0) { y--; cout << "^";//한칸가줬다 } else//x가 0 { y++; cout << "v"; } //일단 전진 cout << endl; } //4가지 케이스가 있음. -1 0 if (x == 1 && y == 1) { cout << ">" << endl; cout << "^" << endl; return 0; } if (x == 0 && y == 1) { cout << "<" << endl; cout << ">^" << endl; return 0; } if (x == 1 && y == 0) { cout << ">^" << endl; cout << "v" << endl; return 0; } if (x == 0 && y == 0) { cout << "<^" << endl; cout << ">v" << endl; return 0; } if (x > 0) { x--; cout << ">";//한칸가줬다 } else//x가 0 { x++; cout << "<"; } if (y > 0) { y--; cout << "^";//한칸가줬다 } else//x가 0 { y++; cout << "v"; }//t는 1 cout << endl; if (x > 0) { x--; cout << ">";//한칸가줬다 } else//x가 0 { x++; cout << "<"; } if (y > 0) { y--; cout << "^";//한칸가줬다 } else//x가 0 { y++; cout << "v"; }//t는 1 cout << endl; } }