I thought
this was a cool problem so I challenged myself to do it without looking at any of the existing answers. I wrote a fairly short program and then spent a while making it shorter and shorter. I felt proud and finally posted it, and now that I'm letting myself look at other answers I can see one in the same language that's 89 bytes shorter. :P