import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); boolean flag = false; for(int i = 1; i <= 100; i++) { if(a % (b * i) == 0) { flag = true; break; } } System.out.println((flag)? "YES" : "NO"); } }