#include #include using namespace std; #define TMAX 100000 int main(){ int T,A,B; string AB[TMAX]; cin>>T>>A>>B; for(int i=0;i0) AB[i]+='^',A--; else AB[i]+='v',A++; if(B>0) AB[i]+='>',B--; else AB[i]+='<',B++; } } if(A==0&&B==0){ cout<<"YES"<