EOF error

I am getting an EOF error and I’m not sure why

import os
import random
import re
import sys


n = int(input().strip())
if n%2 != 0:
    print('Weird')
if n%2 == 0 and n >= 2 and n <= 5:
    print('Not Weird')
if n%2 == 0 and n >= 6 and n <= 20:
    print('Weird')
if n%2 == 0 and n > 20:
    print('Not Weird')


if __name__ == '__main__':
    n = int(input().strip())

Traceback (most recent call last):
  File "/tmp/submission/20220101/17/25/hackerrank-d330509b8015e46ad4504dbbaf3500a4/code/Solution.py", line 22, in <module>
    n = int(input().strip())
EOFError: EOF when reading a line

link to the original problem: Python If-Else | HackerRank

Unfortunately there are certain parts of codecademy that are not set up for user input at present (there’s no terminal or otherwise). That rather deceptive error pops up in the cc environment when there’s no route for input, see below for example-

n = input()

Thanks but this is a hacker rank problem not a codecademy problem. I tried solving the problem and I got the EOF error

I don’t think there’s nothing wrong with the code at present so it must be something to do with the way the code is run or tested. Is there supposed to be two separate inputs?

No. but it still doesnt work when I take out either of the inputs