add the uva 11729 problem