UVa536 accepted but UVa12219 failed with runtime error.