print "keys were lost during inversion\n" if keys %inverted_hash < keys %hash;