Adding 2012 problem A, B