#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string S; cin >> S; string res = ""; reverse(S.begin(), S.end()); for (char s : S) { if (s == '<') { res += '>'; } else { res += '<'; } } cout << res << '\n'; return 0; }