int ordon(int v[], int s, int d) { if(s==d) return 1; else if(ordon(v,s,(s+d)/2) && ordon(v,(s+d)/2+1,d) && v[(s+d)/2]<=v[(s+d)/2+1]) return 1; else return 0; }