#include //using namespace std; typedef unsigned long long ul; typedef signed long long ll; int main(void) { std::cin.tie(0); std::ios::sync_with_stdio(false); std::string s; std::cin >> s; for (int i = s.size()-1; i >= 0; --i) { std::cout << (s[i] == '<' ? '>' : '<'); } std::cout << std::endl; return 0; }