Can you give more information about how your program is run? I tried to execute it, but it seems to expect some sort of input.