#include using namespace std; int main() { string s; cin >> s; int cnt = 0; for (int i = 0; i < s.size(); i++) { cnt += s[i] == '1'; } cout << (cnt <= 2 ? "Yes" : "No") << endl; return 0; }