#include <bits/stdc++.h>
#define endl '\n'

using namespace std;

typedef long long ll;

string s;
bool f = 0;

int main() {
    cin >> s;
    if (atoi(s.c_str()) % 62 == 0) {
        cout << "Yes" << endl;
        f = 1;
    } else {
        for (unsigned long long i = 0; i < s.size(); i++) {
            if (s[i] == '6' && s[i + 1] == '2') {
                cout << "Yes" << endl;
                f = 1;
                break;
            }
        }
    }
    if (!f) {
        cout << "No" << endl;
    }
    return 0;
}

0 comments

No comments so far...

Information

ID
4715
Time
1000ms
Memory
256MiB
Difficulty
1
Tags
# Submissions
22
Accepted
6
Uploaded By