func main() var n: int :: cui@inputInt() var h: int :: cui@inputInt() for i(0, n - 1) var a: int :: cui@inputInt() do h :: h / math@gcd(h, a) end for var ans: bool :: h = 1 do cui@print(ans ?("YES\n", "NO\n")) end func