#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> s; reverse(ALL(s)); for(char c : s){ if(c=='>'){ cout << '<'; }else{ cout << '>'; } } cout << endl; return 0; }