#include <bits/stdc++.h>
const int MAXLEN = 200000;
char str[MAXLEN + 1];
int main() {
  gets(str);
  char end = 0;
  for (int i = 0; str[i]; i++) {
    if (!end && str[i] != ' ') {
      printf("<");
      if (str[i] == '"') {
        end = '"';
      } else {
        end = ' ';
        printf("%c", str[i]);
      }
    } else if (end) {
      if (str[i] == end) {
        printf(">\n");
        end = 0;
      } else
        printf("%c", str[i]);
    }
  }
  if (end) printf(">\n");
  return 0;
}
