#include int main(){ int n,i,j,p; unsigned long long int M[1000][100]; scanf("%d", &n); for (i=0; i < n; i++){ scanf("%d", &p); for (j=0; j