#include using namespace std; int main(){ string N; cin >> N; int L = N.size(); int cnt = 0; bool ok = true; for (int i = 0; i < L; i++){ if (N[i] == '1'){ cnt++; } } for (int i = 0; i < L; i++){ if (N[i] == '0' && N[i + 1] == '1'){ ok = false; } } if (cnt == 2 || (cnt >= 2 && ok)){ cout << "Yes" << endl; } else { cout << "No" << endl; } }