#include using namespace std; string N; main() { cin>>N; int cnt=0; for(char c:N)if(c=='1')cnt++; if(cnt==2) { cout<<"Yes"<