#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define rep(x, to) for (int x = 0; x < (to); x++) #define REP(x, a, to) for (int x = (a); x < (to); x++) #define foreach(itr, x) for (typeof((x).begin()) itr = (x).begin(); itr != (x).end(); itr++) #define EPS (1e-14) using namespace std; typedef long long ll; typedef pair PII; typedef pair PLL; typedef complex Complex; typedef vector< vector > Mat; int t, a, b; int y, x; // ゴール一歩手前 // (sy,sx) -> (gy, gx)にr手でぴったりいける? // (sy,sx),(gy,gx)は隣接関係 void calc(int sy, int sx, int gy, int gx, int r) { if (sy + 1 == gy && sx == gx) { if (r % 2 == 1) { string s[2] = {"^","v"}; rep(i, r) cout << s[i&1] << endl; } else { string s[2] = {"^<","v>"}; rep(i, r - 1) cout << s[i&1] << endl; cout << ">^" << endl; } } else if (sy == gy && sx + 1 == gx) { if (r % 2 == 1) { string s[2] = {">","<"}; rep(i, r) cout << s[i&1] << endl; } else { string s[2] = {">^","" << endl; } } else { if (r % 2 == 1) { string s[2] = {"^>","v<"}; rep(i, r) cout << s[i&1] << endl; } else { string s[2] = {"^","v"}; rep(i, r - 1) cout << s[i&1] << endl; cout << ">" << endl; } } } int main() { cin >> t >> a >> b; if (a > b) { y = a - 1; x = b; } else if (a < b) { y = a; x = b - 1; } else { y = a - 1; x = b - 1; } if (max(a, b) > t) { cout << "NO" << endl; } else { cout << "YES" << endl; rep(i, min(y, x)) { cout << ">^" << endl; } if (y > x) { rep(i, y - x) { cout << "^" << endl; } calc(y, x, a, b, t - y); } else if (y < x) { rep(i, x - y) { cout << ">" << endl; } calc(y, x, a, b, t - x); } else { calc(y, x, a, b, t - x); } } return 0; }