#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define popcount __builtin_popcount using namespace std; typedef long long int ll; typedef pair P; bool comp[501][501]; bool mycomp(int x, int y){ return comp[x][y]; } int main() { int n; cin>>n; char c; for(int i=0; i>c; int l=(i-j+n)%n+1, r=(i+j)%n+1; if(l==r) continue; if(c=='<') comp[l][r]=1; else comp[r][l]=1; } cout<<"?"; for(int j=0; j>c; int l=(i-j+n)%n+1, r=(i+j+1)%n+1; if(l==r) continue; if(c=='<') comp[l][r]=1; else comp[r][l]=1; } } int a[501]; for(int i=0; i