#include using namespace std; using pint = pair< int, int >; int main() { string s {}; cin >> s; reverse( begin( s ), end( s ) ); for_each( begin( s ), end( s ), []( auto t ) { cout << ( t == '<' ? ">" : "<" ); } ); endl( cout ); }