#include #include using namespace std; string s; int main() { cin >> s; int n = s.length(); int i; string t; for (i = n - 1; i >= 0; i--) { if (s[i] == '>') t += '<'; else t += '>'; } cout << t << endl; return 0; }