#include using namespace std; int main(){ string s; cin>>s; map M; M['<']='>';M['>']='<'; reverse(s.begin(),s.end()); for(auto &it:s)it=M[it]; cout<