The parity of permutations and the Futurama theorem