Added solution for Africa 2010 Qualification Round Problem A. Also added template file.