#include #include #include #include #include #include using namespace std; using uint = unsigned int; using ll = long long; #define CIN( LL , A ) LL A; cin >> A #define GETLINE( A ) string A; getline( cin , A ) #define FOR_ITR( ARRAY , ITR , END ) for( auto ITR = ARRAY .begin() , END = ARRAY .end() ; ITR != END ; ITR ++ ) int main() { CIN( string , S ); const uint& size = S.size(); const string L = "<"; const string R = ">"; for( ll i = size - 1 ; i >= 0 ; i-- ){ string c = S.substr( i , 1 ); if( c == L ){ c = R; } else { c = L; } cout << c; } cout << endl; return 0; }