#include #include #include #include void fail() { std::cout << "NO\n"; std::exit(0); } void solve() { int t, a, b; std::cin >> t >> a >> b; std::vector ans(t); { if (a > t) fail(); for (int i = 0; i < a; ++i) ans[i].push_back('>'); for (int i = a; i + 1 < t; i += 2) { ans[i].push_back('>'); ans[i + 1].push_back('<'); } } { if (b > t) fail(); for (int i = 0; i < b; ++i) ans[i].push_back('^'); if ((t - b) % 2 != 0) ++b; for (int i = b; i + 1 < t; i += 2) { ans[i].push_back('^'); ans[i + 1].push_back('v'); } } if (std::any_of(ans.begin(), ans.end(), [](const auto& s) { return s.empty(); })) fail(); std::cout << "YES\n"; for (auto& s : ans) std::cout << s << "\n"; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }