#include <string.h> #include <iostream> using namespace std; int main() { char sell[1005],want[1005]; int s[1005]={0}; int j,n=0; cin>>sell>>want; for(int i=0;i<strlen(want);i++) { for(j=0;j<strlen(sell);j++) { if(want[i]==sell[j]&&s[j]==0) { s[j]=1; break; } } if(j==strlen(sell)) n++; } if(n>0) cout<<"No "<<n<<endl; else cout<<"Yes "<<strlen(sell)-strlen(want)<<endl; return 0; }