Python solution in 57 chars
Merge pull request #169 from weapp/master

Python solution in 57 chars