#include using namespace std; typedef long long ll; typedef long int li; typedef long double lb; #define rep(i,j,n) for (ll i = j; i < (n); i++) #define repr(i,j,n) for(ll i = j; i >= (n); i--) #define all(x) (x).begin(),(x).end() #define CLR(mat,f) memset(mat, f, sizeof(mat)) #define IN(a, b, x) (a<=x&&x inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } typedef pairP; const ll mod=1e9+7; const ll INF = 1LL<<60; int main(){ ll n;cin>>n; if(n%6==0&&(n/6)%2==1)out("Yes"); else out("No"); return 0; }