#include #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ string s; cin>>s; reverse(s.begin(), s.end()); for(char c:s){ if(c=='<') cout << '>'; else cout << '<'; } cout << endl; }