#include using namespace std; int main(){ string S; cin >> S; while(!S.empty()){ if(S.back()=='<') cout << '>'; else cout << '<'; S.pop_back(); } cout << endl; return 0; }