THIS IS NOT MY SOLUTION TO THE SECOND WEEKLY CHALLENGE. I just saw @MrEconomical golfed his at 326 something chars.
This solution currently sits at 122 chars (less than 326). Just put the input into STDIN.
Nice! However, I have no idea how this works since I don't know Haskell...