Solve UVa 11218 - KTV.