working output in code puzzles