#include <bits/stdc++.h>
using namespace std;
int main() {
  int i = 0, n, x, ans = 0;
  string str;
  bool cont = 0, was = 0;
  getline(cin, str);
  for (i = 0; i < str.length(); ++i) {
    if (str[i] == '"') {
      printf((cont ? ">\n" : "<"));
      cont = 1 ^ cont;
    } else {
      if (cont)
        cout << str[i];
      else {
        if (was && str[i] != ' ')
          cout << str[i];
        else if (was && str[i] == ' ') {
          cout << ">\n";
          was = 0;
        } else if (!was && str[i] != ' ') {
          cout << "<" << str[i];
          was = 1;
        }
      }
    }
  }
  if (was) cout << ">";
  return 0;
}
