<>;@a=<>; for$m(1..100){grep$_*$m%100,@a or exit!print$m}