#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; //取りあえず最短時間を出す int m = max(a,b); //最短時間が制限時間より長い場合は無理 if (t < m){ cout << "NO" << endl; } else{ if (t < 2 && (t - m) % 2){ cout << "NO" << endl; return 0; } cout << "YES" << endl; if (t >= 2 && (t - m) % 2){ cout << ">" << endl; cout << "^" << endl; t -= 2; a--; b--; m--; } rep(i, min(a, b)){ cout << "^>" << endl; } rep(i, m - min(a, b)){ if (a > b)cout << "^" << endl; else cout << ">" << endl; } if (t - m){ rep(i, (t - m)/2){ cout << ">" << endl; cout << "<" << endl; } } } return 0; }