#include <bits/stdc++.h>
using namespace std;
template <class T>
T gcd(T x, T y) {
  while (T t = x % y) x = y, y = t;
  return y;
}
const double eps = 1e-10;
const double PI = acos(-1.);
const int INF = 1000000000;
const int MOD = 1000000007;
const double E = 2.7182818284590452353602874713527;
bool isdig(char x) { return x >= '0' && x <= '9'; }
bool isup(char x) { return x >= 'A' && x <= 'Z'; }
bool islow(char x) { return x >= 'a' && x <= 'z'; }
bool islet(char x) { return isup(x) || islow(x); }
char com[100005];
int l;
void get_data() {
  gets(com);
  l = strlen(com);
  com[l] = ' ';
  l++;
}
void run() {
  int y = 0;
  bool tp = 0;
  for (int i = 0; i < l; i++) {
    if (com[i] == '"') {
      y ^= 1;
      if (y)
        cout << '<';
      else
        cout << '>' << endl;
    } else {
      if (y)
        cout << com[i];
      else {
        if (com[i] != ' ') {
          if (!tp) {
            cout << '<';
            tp = 1;
          }
          cout << com[i];
        } else {
          if (tp) {
            tp = 0;
            cout << '>' << endl;
          }
        }
      }
    }
  }
}
int main(int argc, char *argv[]) {
  {
    get_data();
    run();
  }
  return EXIT_SUCCESS;
}
