#include using namespace std; typedef long long ll; int main() { string s; cin >> s; for (auto& c : s) c = c == '<' ? '>' : '<'; reverse(s.begin(), s.end()); cout << s << endl; return 0; }