Changed input -> sys.stdin.readline()