* Solved problem A from Round1A 2008