#include #include using namespace std; using ll = long long; //400 int main() { char s[21] = { 0 }; scanf("%s", s); for (int i = 19; 0 <= i; i--) if (s[i] != 0) printf("%c", s[i] != '<' ? '<' : '>'); printf("\n"); }