N = int(input()) EOFError: EOF when reading a line

Why I am getting this error even if I have copied this example case. I have tried to do different changes.

My code is running everywhere else.