Fun task about dices solved in several langages