#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, i, j = 0, f = 0, t = 0;
  string s;
  getline(cin, s);
  k = s.size();
  for (i = 0; i < k; i++) {
    if (s[i] == '"' && j == 0) {
      j = 1;
      cout << "<";
    } else if (j == 1 && s[i] == '"') {
      cout << ">" << endl;
      j = 0;
    } else if (j == 1) {
      cout << s[i];
    } else if (j == 0) {
      if (s[i] != 32 && ((s[i + 1] == 32) || (i == k - 1)) && f == 0) {
        cout << "<" << s[i];
        cout << ">" << endl;
        f = 0;
      } else if (s[i] != 32 && (s[i + 1] == 32 || i == k - 1) && f == 1) {
        cout << s[i];
        cout << ">" << endl;
        f = 0;
      } else if (s[i] != 32 && f == 0) {
        cout << "<" << s[i];
        f = 1;
      } else if (s[i] != 32) {
        cout << s[i];
      }
    }
  }
  return 0;
}
