#include #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { string s; cin >> s; int cnt = 0; for (char c : s) { if (c == '1') cnt++; } if (cnt == 2) { puts("Yes"); return 0; } int n = s.size(); vector pos; rep(i, n) { if (s[i] == '0') { pos.push_back(i); } } vector a{n-2, n-1}; if (pos == a) puts("Yes"); else puts("No"); return 0; }