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