#define _CRT_SECURE_NO_WARNINGS // #pragma warning(disable:4996) #include #include #include #include #include #include #include #include using namespace std; #define rep(i,a,b) for(int i=(a);i<(b);i++) #define pb push_back #define mp(a,b) make_pair(a,b) #define all(a) a.begin(),a.end() typedef pair Pii; typedef vector V; typedef long long ll; const int inf = 2e9; const int mod = 1e9 + 7; const int MAX_N = 202020; int main() { string s1, s2; cin >> s1; for(int i=s1.size()-1; i>=0; i--) { if (s1[i] == '<') s2 += '>'; else s2 += '<'; } cout << s2 << endl; return 0; }