Your task is to take an input string of ascii characters and output the string as a series of vertical words separated by spaces. An example is shown below:
Given the string:
Hello, World! My name is Foo.
the output should be:
H W M n i F e o y a s o l r m o l l e . o d , !
10 bonus points will be awarded if your program correctly handles strings which need to wrap-around the terminal, which we'll set at 80 characters.
50 points if your program can also do the reverse!