#include <bits/stdc++.h>
char s[100001];
int main() {
  gets(s);
  int n = strlen(s);
  for (int i = 0; i < n; ++i) {
    if (s[i] == '"') {
      ++i;
      putchar('<');
      while (s[i] != '"') putchar(s[i++]);
      puts(">");
    } else if (s[i] != ' ') {
      putchar('<');
      while (i < n && s[i] != ' ' && s[i] != '"') putchar(s[i++]);
      puts(">");
      --i;
    }
  }
  return 0;
}
