2014 1B Problem A solution