Runtime Error in SEACIR

Hi, I am getting run time error(NZEC). I should get a WA for this solution. Am I taking the input correctly or are interactive problems are handled in another way?

import sys
n, s, skip = map(int, input().split())
a = list(map(int, input().split()))
for _ in range(0,n):
    r = int(input())
    print(-1, -1)
    sys.stdout.flush()

You are not allowed to discuss your solution at any where otherwise you would be disqualified!

This is not a solution. Here I’m just taking input and printing some dummy data.

Post a comment in the comment section, I guess they will answer.
They replied to my query.
If your doubt is genuine and all, they will surely reply.
And sorry, I don’t know much about python .