import threading
import time
global x
x=1
def addOne(x):
       x=x+1
       print(x)
for j in range(50):
   t1=threading.Thread(target=addOne,args=(x,))
   print(x)
