#include <bits/stdc++.h>
using namespace std;
string run(string& input, int codesize,
           const vector<tuple<string, string, bool>>& code) {
  bool end = false;
  while (!end) {
    for (int i = 0; i < codesize; ++i) {
      string s1 = get<0>(code[i]), s2 = get<1>(code[i]);
      bool finish = get<2>(code[i]);
      auto from = input.find(s1);
      if (from != string::npos) {
        input.replace(input.begin() + from, input.begin() + from + s1.length(),
                      s2.begin(), s2.end());
        cout << input << endl;
        if (finish) end = true;
        break;
      }
    }
  }
  return input;
}
int main() {
  int n;
  cin >> n;
  vector<string> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  vector<tuple<string, string, bool>> code;
  for (int i = 0; i <= 9; ++i) {
    stringstream ss1, ss2;
    ss1 << i << "??";
    ss2 << (i == 9 ? "??" : "") << (i + 1) % 10;
    code.push_back(make_tuple(ss1.str(), ss2.str(), i != 9));
  }
  code.push_back(make_tuple("??", "1", true));
  for (int i = 0; i <= 9; ++i) {
    stringstream ss1, ss2;
    ss1 << "?" << i;
    ss2 << i << "?";
    code.push_back(make_tuple(ss1.str(), ss2.str(), false));
  }
  code.push_back(make_tuple("?", "??", false));
  for (int i = 0; i <= 9; ++i) {
    stringstream ss;
    ss << i;
    code.push_back(make_tuple(ss.str(), ss.str() + "?", false));
  }
  const int codesize = (int)code.size();
  for (int i = 0; i < codesize; ++i) {
    cout << get<0>(code[i]) << (get<2>(code[i]) ? "<>" : ">>")
         << get<1>(code[i]) << endl;
  }
}
