#include using namespace std; int main() { string S; cin>>S; reverse(S.begin(),S.end()); for(char c:S)cout << (c=='<'?'>':'<');cout << endl; }