Help me in solving FRUITS problem

My issue

My code

for _ in range(int(input())):
    n, m, k = map(int,input().split())
    print(abs(n+k-m)) if n<=m else print(abs(m+k-n))

Problem Link: FRUITS Problem - CodeChef
I am getting error as
Traceback (most recent call last):
File “/mnt/sol.py”, line 1, in
for _ in range(int(input())):
ValueError: invalid literal for int() with base 10: ‘’

@sravan090901
this is the right code with proper indentation hope u will get it.

for _ in range(int(input())):
    n, m, k = map(int,input().split())
    print(max(abs(n-m)-k,0))