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