#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  getline(cin, s);
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == ' ') continue;
    cout << "<";
    if (s[i] == '"') {
      for (++i; s[i] != '"'; i++) cout << s[i];
    } else {
      for (; i < s.length() && s[i] != ' '; i++) cout << s[i];
    }
    cout << ">" << endl;
  }
  return 0;
}
