Uva 10035, the first version written by c, to be optimized.