#include<stdio.h>
#include<math.h>
int main(){
int a, b, kq;
char pheptinh;
scanf("%d %c %d =%d", &a, &pheptinh, &b, &kq);
if((pheptinh == '+' && a + b == kq)|| (pheptinh == '-' && a - b == kq) || (pheptinh == '*' && a * b == kq) || (pheptinh == '/' && b != 0 && a / b == kq)){
printf("YES");
}
else{
printf("NO");
}
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8bWF0aC5oPgppbnQgbWFpbigpewoJaW50IGEsIGIsIGtxOwoJY2hhciBwaGVwdGluaDsKCXNjYW5mKCIlZCAlYyAlZCA9JWQiLCAmYSwgJnBoZXB0aW5oLCAmYiwgJmtxKTsKCWlmKChwaGVwdGluaCA9PSAnKycgJiYgYSArIGIgPT0ga3EpfHwgKHBoZXB0aW5oID09ICctJyAmJiBhIC0gYiA9PSBrcSkgfHwgKHBoZXB0aW5oID09ICcqJyAmJiBhICogYiA9PSBrcSkgfHwgKHBoZXB0aW5oID09ICcvJyAmJiBiICE9IDAgJiYgYSAvIGIgPT0ga3EpKXsKCSAgCXByaW50ZigiWUVTIik7CgkgIH0KCSAgZWxzZXsKCSAgCXByaW50ZigiTk8iKTsKCSAgfQoJICByZXR1cm4gMDsKfQ==