Help me in solving MINCOINS problem

My issue

why ((x+10)+1

My code

T=int(input())
for i in range(T):
    X=int(input())
    if(x%10==0):
        print(x//10)
    elif(x%10!=0 and x%5==0):
        print((x//10)+1
    else:
        print(-1)

Problem Link: MINCOINS Problem - CodeChef

@vamsirayudu200
bcozz if x%5 ==0 then x-5 will surely be divisible by 10 .
so the minimum coins u need is that x//10 +1;
1 for one 5 rs coin.