#include #define rep(i, a, n) for(int i = a; i < n; i++) #define repp(i, n) rep(i, 0, n) #define repb(i, a, b) for(int i = a; i >= b; i--) #define all(a) a.begin(), a.end() #define int long long using namespace std; signed main(){ string s, t = ""; cin >> s; rep(i, 0, s.size()){ if(s[s.size() - 1 - i] == '<') t += '>'; else t += '<'; } cout << t << endl; }