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); long n = Long.parseLong(sc.next()); long m = Long.parseLong(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; System.out.println(f?"Yes":"No");; } }