#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll,ll>; #define fix(x) fixed << setprecision(x) #define asc(x) x, vector<x>, greater<x> #define rep(i, n) for(ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() template<class T>bool chmin(T&a, const T&b){if(a>b){a=b;return 1;}return 0;} template<class T>bool chmax(T&a, const T&b){if(a<b){a=b;return 1;}return 0;} int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); string n; cin >> n; int x = 0, y = 0; bool b = false; for(char c:n){ if(b && c=='0') b = false; if(!b && c-'0') b = true, y++; x += c-'0'; } bool ans = false; if(x>=2){ if(x==2) ans = true; else if(y==1) ans = true; } cout << (ans?"Yes\n":"No\n"); return 0; }