include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
const int maxn=1001;
using namespace std;
int main(){
char a[maxn];
cin>>a;
char s[maxn];
int f[10]={0};
int len=strlen(a);
for(int i=0;i[HTML_REMOVED]=0;i–){
s[k]=(count+(a[i]-‘0’)2)%10+‘0’;
f[(count+(a[i]-‘0’)2)%10]–;
count=(count+(a[i]-‘0’)*2)/10;
}
if(count!=0){
s[k]=count+‘0’;
}
int flag=1;
for(int i=0;i<10;i++){
if(f[i]<0){
printf(“No\n”);
flag=0;
break;
}
}
if(flag==1){
printf(“Yes\n”);
}
for(int i=k-1;i>=0;i–){
cout<<s[i];
}
return 0;
}