@@=0..1e4;/ /,@@=grep$_%$`==$'%$`,@@for<>;printf@@,NaN