#include <bits/stdc++.h>
using namespace std;
const int N=1000+5;
typedef long long ll;
int n;
ll m,k;
ll a[5]={0,0,0,1,1};
int main(){
freopen ("holiday_and_angryF.in","r",stdin);
freopen ("holiday_and_angryF.out","w",stdout);
scanf("%d%lld%lld",&n,&m,&k);
for (int i=1;i<=n;i++){
ll x;char y;
scanf("%lld",&x);cin>>y;
if (y=='+')a[1]+=x;
if (y=='-')a[2]+=x;
if (y=='*')a[3]*=x;
if (y=='/')a[4]*=x;
}
ll ans=(k/a[4]+a[1])*a[3]-a[2];
if (ans>m) printf("YES\n");
else printf("NO\n");
printf("%lld\n",ans);
return 0;
}