"Regulo de tri" – simple program for applying the rule of three.