UVa1627 writen but remains solving.