#include #include #include #include #include #include #include using namespace std; #define For(i,a,b) for(int i = (a);i < (b);i++) #define rep(i,n) For(i,0,n) const int dx[8] = { 1, 0, -1, 0, 1, 1, -1, -1 }, dy[8] = { 0, -1, 0, 1, -1, 1, -1, 1 }; string dc[8] = { ">", "v", "<", "^", ">^", ">v", "<^", " P; int main(){ int t, a, b; cin >> t >> a >> b; vector ud, rl; if (a > t || b > t){ cout << "NO" << endl; return 0; } rep(i, a){ ud.push_back('^'); } int ta = t - a; if (ta % 2){ if (!b){ cout << "NO" << endl; return 0; } else{ ta--; } } { rep(i, ta / 2){ ud.push_back('^'); ud.push_back('v'); } } rep(i, b){ rl.push_back('>'); } int tb = t - b; if (tb % 2){ if (!a){ cout << "NO" << endl; return 0; } else{ tb--; } } { rep(i, tb / 2){ rl.push_back('>'); rl.push_back('<'); } } cout << "YES" << endl; while (t != max(rl.size(), ud.size())){ if (rl.size() < ud.size()){ cout << rl[rl.size() - 1] << endl; rl.pop_back(); } else{ cout << ud[ud.size() - 1] << endl; ud.pop_back(); } t--; } rep(i, t){ if (i < rl.size()){ cout << rl[i]; } if (i < ud.size()){ cout << ud[i]; } cout << endl; } return 0; }