#include<iostream>
using namespace std;
int main(){
int n[1],arithmos,monades,sum=0,psifio=0,proto;
for(int i=0; i<1; i++){
cin>>n[i];
while(n[i]<=99){
cout<<"lathos arithmos dose xana";
cin>>n[i];
}
arithmos=n[i];
monades=n[i]%10;
arithmos=arithmos/10;
while(arithmos!=0){
proto=psifio;
psifio=arithmos%10;
arithmos=arithmos/10;
sum=sum+psifio;
}
if(sum==monades+proto){
cout<<"yes";
}
else{
cout<<"no";
}
}
return 0;
}
/*
123
123%10=3
123/10=12
12%10=2
12/10=1
1%10=1
1/10=0
*/