Generated code for UVA automatic answer