s[101];a[101];b[101];f;t;i; c(int*g,int*h){s[*g]-s[*h]>0?f?printf("%d %d\n",g-b,h-b):++t:0;return s[*g]-s[*h];} main(n){ for(scanf("%d",&n);i