#include <bits/stdc++.h>
using namespace std;
int main()
{
string S;
while (getline(cin,S))
char line[1001];
for (int i = 0; i < S.length(); i++)
{
if (S[i] == 'L' && S[i] == 'e' && S[i] == 'f' && S[i] == 't') line[i] = '<';
else if (S[i] == 'R' && S[i] == 'i' && S[i] == 'g' && S[i] == 'h' && S[i] == 't')
line[i] = '>';
else if (S[i] == 'A' && S[i] == 't' && S[i] == 'C' && S[i] == 'o' && S[i] == 'd' && S[i] == 'e' && S[i] == 'r')
line[i] = 'A';
else line[i] = S[i];
cout << line[i];
}
return 0;
}