#include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
//-------------------------------------------------------

int H,W,A,B;
int OH,OW,OA,OB;

string S[1010];

void output() {
	int y;
	cout<<"YES"<<endl;
	FOR(y,OH) cout<<S[y]<<endl;
	exit(0);
}

void solve() {
	int i,j,k,l,r,x,y; string s;
	
	cin>>H>>W>>A>>B;
	if(H*W<2*(A+B)) return _P("NO\n");
	OH=H,OW=W,OA=A,OB=B;
	
	FOR(y,H) S[y]=string(W,'.');
	if(H%2==1) {
		for(x=0;x<W-1&&A;x+=2) S[H-1][x]='<', S[H-1][x+1]='>', A--;
		H--;
	}
	if(W%2==1) {
		for(y=0;y<H-1&&B;y+=2) S[y][W-1]='^', S[y+1][W-1]='v', B--;
		W--;
	}
	
	for(y=0;y<H;y+=2) {
		for(x=0;x<W;x+=2) {
			if(A) {
				S[y][x]='<', S[y][x+1]='>', A--;
				if(A) S[y+1][x]='<', S[y+1][x+1]='>', A--;
			}
			else if(B) {
				S[y][x]='^', S[y+1][x]='v', B--;
				if(B) S[y][x+1]='^', S[y+1][x+1]='v', B--;
			}
		}
	}
	if(A==0 && B==0) output();
	
	H=OH,W=OW,A=OA,B=OB;
	if(H%2 && W%2 && H>=3 && W>=3 && A>=2 && B>=2) {
		A-=2;
		B-=2;
		FOR(y,H) S[y]=string(W,'.');
		S[H-3][W-3]=S[H-1][W-2]='<';
		S[H-3][W-2]=S[H-1][W-1]='>';
		S[H-2][W-3]=S[H-3][W-1]='^';
		S[H-1][W-3]=S[H-2][W-1]='v';
		for(y=0;y<H-3&&B;y+=2) S[y][W-1]='^',S[y+1][W-1]='v',B--;
		for(x=0;x<W-3&&A;x+=2) S[H-1][x]='<',S[H-1][x+1]='>',A--;
		for(y=0;y<H-1;y+=2) {
			for(x=0;x<W-1;x+=2) {
				if(S[y][x]!='.') continue;
				if(A) {
					S[y][x]='<', S[y][x+1]='>', A--;
					if(A) S[y+1][x]='<', S[y+1][x+1]='>', A--;
				}
				else if(B) {
					S[y][x]='^', S[y+1][x]='v', B--;
					if(B) S[y][x+1]='^', S[y+1][x+1]='v', B--;
				}
			}
		}
		if(A==0 && B==0) output();
	}
	
	
	cout<<"NO"<<endl;
	
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	cout.tie(0); solve(); return 0;
}

### Prompt

Please provide a CPP coded solution to the problem described below:

Takahashi has an N \times M grid, with N horizontal rows and M vertical columns. Determine if we can place A 1 \times 2 tiles (1 vertical, 2 horizontal) and B 2 \times 1 tiles (2 vertical, 1 horizontal) satisfying the following conditions, and construct one arrangement of the tiles if it is possible:

* All the tiles must be placed on the grid.
* Tiles must not stick out of the grid, and no two different tiles may intersect.
* Neither the grid nor the tiles may be rotated.
* Every tile completely covers exactly two squares.

Constraints

* 1 \leq N,M \leq 1000
* 0 \leq A,B \leq 500000
* N, M, A and B are integers.

Input

Input is given from Standard Input in the following format:


N M A B


Output

If it is impossible to place all the tiles, print `NO`. Otherwise, print the following:


YES
c_{11}...c_{1M}
:
c_{N1}...c_{NM}


Here, c_{ij} must be one of the following characters: `.`, `<`, `>`, `^` and `v`. Represent an arrangement by using each of these characters as follows:

* When c_{ij} is `.`, it indicates that the square at the i-th row and j-th column is empty;
* When c_{ij} is `<`, it indicates that the square at the i-th row and j-th column is covered by the left half of a 1 \times 2 tile;
* When c_{ij} is `>`, it indicates that the square at the i-th row and j-th column is covered by the right half of a 1 \times 2 tile;
* When c_{ij} is `^`, it indicates that the square at the i-th row and j-th column is covered by the top half of a 2 \times 1 tile;
* When c_{ij} is `v`, it indicates that the square at the i-th row and j-th column is covered by the bottom half of a 2 \times 1 tile.

Examples

Input

3 4 4 2


Output

YES
<><>
^<>^
v<>v


Input

4 5 5 3


Output

YES
<>..^
^.<>v
v<>.^
<><>v


Input

7 9 20 20


Output

NO

### Response

```cpp
#include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
//-------------------------------------------------------

int H,W,A,B;
int OH,OW,OA,OB;

string S[1010];

void output() {
	int y;
	cout<<"YES"<<endl;
	FOR(y,OH) cout<<S[y]<<endl;
	exit(0);
}

void solve() {
	int i,j,k,l,r,x,y; string s;
	
	cin>>H>>W>>A>>B;
	if(H*W<2*(A+B)) return _P("NO\n");
	OH=H,OW=W,OA=A,OB=B;
	
	FOR(y,H) S[y]=string(W,'.');
	if(H%2==1) {
		for(x=0;x<W-1&&A;x+=2) S[H-1][x]='<', S[H-1][x+1]='>', A--;
		H--;
	}
	if(W%2==1) {
		for(y=0;y<H-1&&B;y+=2) S[y][W-1]='^', S[y+1][W-1]='v', B--;
		W--;
	}
	
	for(y=0;y<H;y+=2) {
		for(x=0;x<W;x+=2) {
			if(A) {
				S[y][x]='<', S[y][x+1]='>', A--;
				if(A) S[y+1][x]='<', S[y+1][x+1]='>', A--;
			}
			else if(B) {
				S[y][x]='^', S[y+1][x]='v', B--;
				if(B) S[y][x+1]='^', S[y+1][x+1]='v', B--;
			}
		}
	}
	if(A==0 && B==0) output();
	
	H=OH,W=OW,A=OA,B=OB;
	if(H%2 && W%2 && H>=3 && W>=3 && A>=2 && B>=2) {
		A-=2;
		B-=2;
		FOR(y,H) S[y]=string(W,'.');
		S[H-3][W-3]=S[H-1][W-2]='<';
		S[H-3][W-2]=S[H-1][W-1]='>';
		S[H-2][W-3]=S[H-3][W-1]='^';
		S[H-1][W-3]=S[H-2][W-1]='v';
		for(y=0;y<H-3&&B;y+=2) S[y][W-1]='^',S[y+1][W-1]='v',B--;
		for(x=0;x<W-3&&A;x+=2) S[H-1][x]='<',S[H-1][x+1]='>',A--;
		for(y=0;y<H-1;y+=2) {
			for(x=0;x<W-1;x+=2) {
				if(S[y][x]!='.') continue;
				if(A) {
					S[y][x]='<', S[y][x+1]='>', A--;
					if(A) S[y+1][x]='<', S[y+1][x+1]='>', A--;
				}
				else if(B) {
					S[y][x]='^', S[y+1][x]='v', B--;
					if(B) S[y][x+1]='^', S[y+1][x+1]='v', B--;
				}
			}
		}
		if(A==0 && B==0) output();
	}
	
	
	cout<<"NO"<<endl;
	
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	cout.tie(0); solve(); return 0;
}

```