#include <bits/stdc++.h>
using namespace std;
int main() {
  int cnt, i, n, j, flag = 0, prime = 0;
  char a[110000], b[110000];
  gets(a);
  n = strlen(a);
  cnt = count(a, a + n, '"');
  if (cnt % 2 != 0) {
    cnt--;
  }
  for (i = 0, j = 0; (i < n) && (prime < cnt); i++) {
    if (a[i] == '"') {
      prime++;
      if (flag == 0) {
        b[j] = '<';
        flag = 1;
        j++;
      } else {
        b[j] = '>';
        flag = 0;
        j++;
      }
    }
    if (a[i] != '"') {
      b[j] = a[i];
      j++;
    }
  }
  while (i < n) {
    b[j] = a[i];
    i++;
    j++;
  }
  for (i = 0; i < n; i++) {
    if (b[i] == '<') {
      printf("<");
      i++;
      while (b[i] != '>') {
        printf("%c", b[i]);
        i++;
      }
      printf(">\n");
    } else if (b[i] != ' ') {
      printf("<");
      if (b[i] != '"') {
        while ((b[i] != ' ') && (b[i] != '<') && (b[i] != '>') && i < n) {
          printf("%c", b[i]);
          i++;
        }
      }
      printf(">\n");
    }
  }
  return 0;
}
