UVa problem 706 LC display