# coding: utf-8 # Here your code ! high,wide,N,K =[int(i) for i in input().split()] S = high * wide if S % N == K: print("YES") else: print("NO")