#include main(){int n,r,m=1,c=1,a[2020];scanf("%d",&n);for(int i=0;i