7 lines
119 B
Python

import os, sys
while 1:
line = sys.stdin.readline().strip()
if not line:
break
os.close(int(line))