Create UVa 1597.cc