#define _GLIBCXX_DEBUG #include using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for(int i = 0; i < (int)S.size(); i++){ if(S[i] == '<') cout << ">"; else cout << "<"; } cout << endl; }