Why does it say input() returned EOF in the following code:
N = int(input())
arr = {}
for i in range(N):
temp = input()
if temp in arr:
arr[temp] = arr[temp]+1
else:
arr[temp] = 1
for x,y in arr.items():
if y >= math.floor(N/3):
print(x," ",)