import time import sys f1=open('in11_4.txt','r') f2=open('out_24_11_4.txt','w') a=[] x=int(f1.readline()) row=f1.readline() lst=row.split(',') h=time.clock() for i in range(len(lst)): a.append(int(lst[i])) i=len(lst)/2 while i< len(lst)-1: z=a[i+1]-a[i] if z>10000: break i=i+1 if i>=len(lst): i=0 while i< len(lst)/2: z=a[i+1]-a[i] if z>10000: break i=i+1 k=0 l=i j=(k+l)/2 while 1: if(x==a[j]): f2.write("Postion of the number:") f2.write(str(j)) break if(x