#include "bits/stdc++.h" using namespace std; #define DEBUG(x) cout<<#x<<": "< #define vl vector #define vii vector< vector > #define vll vector< vector > #define vs vector #define pii pair #define pis pair #define psi pair const int inf = 1000000001; const ll INF = 1e16; #define MOD 1000000007 #define mod 1000000009 #define pi 3.14159265358979323846 #define Sp(p) cout<> t >> a >> b; if (a > t || b > t) { cout << "NO" << endl; return 0; } cout << "YES" << endl; int t2 = 0; int x = 0, y = 0; while (x < a - 1 && y < b - 1) { cout << "^>" << endl; x++; y++; t2++; } if (a > b) { while (x < a - 1) { cout << ">" << endl; x++; t2++; } } else if (b > a) { while (y < b - 1) { cout << "^" << endl; y++; t2++; } } bool now = false; while (t2 < t - 1) { if (!now) { cout << "^" << endl; } else { cout << "v" << endl; } t2++; now = !now; } if (now) { cout << ">" << endl; return 0; } else { cout << "^>" << endl; return 0; } }