#include <bits/stdc++.h>
using namespace std;
#define int long long
int n;
signed main(){
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
cin >> n;
if(n % 3 == 0){
cout << "Yes\n";
return 0;
}
while(n > 0){
if(n % 10 == 3){
cout << "Yes\n";
return 0;
}
n /= 10;
}
cout << "No\n";
return 0;
}
加了怎么还是0分?