codejam: added 2008 Beta Problem B