#include using namespace std; int T[500],T1[500],n; int check() { int temp = T[0]; for(int j=1;j