Problem: Important: All possible tests are in the pretest, so you shouldn't hack on this problem. So, if you passed pretests, you will also pass the system test.

You are an adventurer currently journeying inside an evil temple. After defeating a couple of weak monsters, you arrived at a square room consisting of tiles forming an n × n grid, surrounded entirely by walls. At the end of the room lies a door locked with evil magical forces. The following inscriptions are written on the door:

The sound of clashing rocks will awaken the door!

Being a very senior adventurer, you immediately realize what this means. In the room next door lies an infinite number of magical rocks. There are four types of rocks: 

  * '^': this rock moves upwards; 
  * '<': this rock moves leftwards; 
  * '>': this rock moves rightwards; 
  * 'v': this rock moves downwards. 



To open the door, you first need to place the rocks on some of the tiles (one tile can be occupied by at most one rock). Then, you select a single rock that you have placed and activate it. The activated rock will then move in its direction until it hits another rock or hits the walls of the room (the rock will not move if something already blocks it in its chosen direction). The rock then deactivates. If it hits the walls, or if there have been already 107 events of rock becoming activated, the movements end. Otherwise, the rock that was hit becomes activated and this procedure is repeated.

If a rock moves at least one cell before hitting either the wall or another rock, the hit produces a sound. The door will open once the number of produced sounds is at least x. It is okay for the rocks to continue moving after producing x sounds.

The following picture illustrates the four possible scenarios of moving rocks.

  * Moves at least one cell, then hits another rock. A sound is produced, the hit rock becomes activated. <image>
  * Moves at least one cell, then hits the wall (i.e., the side of the room). A sound is produced, the movements end. <image>
  * Does not move because a rock is already standing in the path. The blocking rock becomes activated, but no sounds are produced. <image>
  * Does not move because the wall is in the way. No sounds are produced and the movements end. <image>



Assume there's an infinite number of rocks of each type in the neighboring room. You know what to do: place the rocks and open the door!

Input

The first line will consists of two integers n and x, denoting the size of the room and the number of sounds required to open the door. There will be exactly three test cases for this problem:

  * n = 5, x = 5; 
  * n = 3, x = 2; 
  * n = 100, x = 105. 



All of these testcases are in pretest.

Output

Output n lines. Each line consists of n characters — the j-th character of the i-th line represents the content of the tile at the i-th row and the j-th column, and should be one of these:

  * '^', '<', '>', or 'v': a rock as described in the problem statement. 
  * '.': an empty tile. 



Then, output two integers r and c (1 ≤ r, c ≤ n) on the next line — this means that the rock you activate first is located at the r-th row from above and c-th column from the left. There must be a rock in this cell.

If there are multiple solutions, you may output any of them.

Examples

Input

5 5


Output

&gt;...v
v.&lt;..
..^..
&gt;....
..^.&lt;
1 1


Input

3 2


Output

&gt;vv
^&lt;.
^.&lt;
1 3

Note

Here's a simulation of the first example, accompanied with the number of sounds produced so far.

<image> 0 sound  <image> 1 sound  <image> 2 sounds  <image> 3 sounds  <image> 4 sounds  <image> still 4 sounds 

In the picture above, the activated rock switches between the '^' rock and the '<' rock. However, no sound is produced since the '^' rock didn't move even a single tile. So, still 4 sound.

<image> 5 sounds 

At this point, 5 sound are already produced, so this solution is already correct. However, for the sake of example, we will continue simulating what happens.

<image> 6 sounds  <image> 7 sounds  <image> still 7 sounds  <image> 8 sounds 

And the movement stops. In total, it produces 8 sounds. Notice that the last move produced sound.

Here's a simulation of the second example:

<image> 0 sound  <image> 1 sound  <image> 2 sounds 

Now, the activated stone will switch continuously from one to another without producing a sound until it reaches the 107 limit, after which the movement will cease.

<image>

In total, it produced exactly 2 sounds, so the solution is correct.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector")
#pragma GCC optimize("unroll-loops")
using namespace std;
const long long N = 500 + 5;
const long long M = 1005;
const long long maxn = 5e6 + 5;
const long long mod = 998244353;
const long long inf = 0x3f3f3f3f3f3f3f3f;
inline long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch > '9' || ch < '0') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
inline long long ksm(long long x, long long y = mod - 2, long long z = mod) {
  long long ret = 1;
  while (y) {
    if (y & 1) ret = (ret * x) % z;
    x = (x * x) % z;
    y >>= 1;
  }
  return ret;
}
long long inv[N], fac[N], ifc[N];
long long pw[N];
void Init(long long n) {
  inv[1] = 1;
  for (long long i = 2; i <= n; i++)
    inv[i] = inv[mod % i] * (mod - mod / i) % mod;
  fac[0] = 1;
  for (long long i = 1; i <= n; i++) fac[i] = fac[i - 1] * i % mod;
  ifc[0] = 1;
  for (long long i = 1; i <= n; i++) ifc[i] = ifc[i - 1] * inv[i] % mod;
  pw[0] = 1;
  for (long long i = 1; i <= n; i++) pw[i] = pw[i - 1] * 2 % mod;
}
long long C(long long n, long long m) {
  if (m > n || m < 0) return 0;
  return fac[n] * ifc[m] % mod * ifc[n - m] % mod;
}
long long n;
void solve() {
  puts(
      ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      ".>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts(
      "^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
      ">.>.>.>.>.>.>.>.>.>.>.>.>.v.");
  puts(
      "^<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<"
      "<<<<<<<<<<<<<<<<<<<<<<<<<<<.");
  puts("1 1");
}
signed main() {
  n = read();
  if (n == 5) {
    puts(">...v");
    puts("v.<..");
    puts("..^..");
    puts(">....");
    puts("..^.<");
    puts("1 1");
  } else if (n == 3) {
    puts(">vv");
    puts("^<.");
    puts("^.<");
    puts("1 3");
  } else
    solve();
}