#include <bits/stdc++.h>
using namespace std;
int N, X;
int main() {
  scanf("%d%d", &N, &X);
  string s;
  if (N == 5)
    s += ">...v\nv.<..\n..^..\n>....\n..^.<\n1 1";
  else if (N == 3)
    s += ">vv\n^<.\n^.<\n1 3";
  else if (N == 100)
    s +=
        "v.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<"
        "<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
        "<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^"
        "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>"
        ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>"
        ">>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>"
        ">>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>"
        ">>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        ">>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        "v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<"
        "<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
        "<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^"
        "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>"
        ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>"
        ">>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>"
        ">>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>"
        ">>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        ">>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        "v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<"
        "<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
        "<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^"
        "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>"
        ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>"
        ">>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.v.\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>"
        ">>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>"
        ">>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        ">>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        "v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<"
        "<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
        "<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^"
        "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>"
        ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>"
        ">>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.>.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>"
        ">>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.>.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<.<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>"
        ">>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        ">.>.>.v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<."
        "<.<.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        ">>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>."
        "v^\nv.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>."
        ">.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.v^\nv.<.<.<."
        "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<<<<<<<<<<<<<<"
        "<<<<<<<<<<<<<<<<<<<<<^\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>"
        ".>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.^\n1 1";
  cout << s << endl;
  return 0;
}
