non-effective version for problem A Round 1C
2013 qual round