def lscan; gets.split.map(&:to_i); end aa = lscan x = gets.to_i puts x%aa.reduce(:gcd) == 0 ? 'Yes' : 'No'