from math import * nbPersonnes = int(input()) nbFruits = int(input()) reste = (nbFruits % nbPersonnes) == 0 if reste: print("oui") else: print("non")