Step 1: Format your code to be easily readable (i.e. add tabs).

Step 2: What issue are you running into specifically? Compiler errors? Runtime errors? Which ones?

fyi, StdOut and StdIn are not...