<filename>1172.py

for i in range(10):
    x=int(input())
    if x<=0:
        x=1
    print("X[%d] = %d" %(i,x))

<filename>1172.py

for i in range(10):
    x=int(input())
    if x<=0:
        x=1
    print("X[%d] = %d" %(i,x))
