import thread
import time
x=1
def f1(x):
   for i in range(0,3):
       #time.sleep(4)
       x=x+1
       print("Inside f1: x= ",x)
def f2(x):
   for i in range(0,3):
       #time.sleep(1)
       x=x-2
       print("Inside f2: x= ",x)
thread.start_new_thread(f1, (x,))
thread.start_new_thread(f2, (x,))
print(x)
