#include #include using namespace std; int main(){ string S; cin>>S; int a=S.length(); for(int i=a-1;i>=0;i--){ if(S[i]=='<'){ cout<<'>'<