2013-1A-Problem B. Manage your Energy.