cause you are trying to read after the input ends
try this:
import sys
for x in sys.stdin.read().split():
sys.stdout.write(("%d\n" % (int(x) * 2 - 2)) if x > "1" else x + "\n")
and about psyco, two common mistakes:
If you use psyco you have to put ALL code as possible in functions
no speedup for code simply in module
Import of psyco should be the last in imports
And for this task you don't need psyco at all