http://www.spoj.com/problems/SNGINT/