func main() var ss: [][]char :: cui@input().split(" ") var a: int :: ss[0].toInt(&) var b: int :: ss[1].toInt(&) var ans: bool :: math@gcd(a, b) = b do cui@print(ans ?("YES\n", "NO\n")) end func