import java.util.Scanner; public class Main { public static void main(String[] args) { Main main = new Main(); main.solve(); } void solve() { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int m = Integer.parseInt(sc.next()); sc.close(); boolean f = false; if(m%2==1)f=false; else if(n%2==0&&m%2==0)f=true; else if(n*10%m==0)f = true; if(f)System.out.println("Yes"); else System.out.println("No"); } }