def main(): from sys import stdin import math readline=stdin.readline a,b = map(int, readline().split()) b //= math.gcd(a, b) if b % 2 != 0: if b % 5 != 0: print('Yes') else: print('No') else: print('No') main()