#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define fi first
#define se second
long long mo = 1000000007;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> Pii;
typedef pair<ll,ll> Pll;
typedef pair<ll,Pll> PlP;
template<class T, class S> void cmin(T &a, const S &b) { if (a > b)a = b; }
template<class T, class S> void cmax(T &a, const S &b) { if (a < b)a = b; }
template<class A>void PR(A a,ll n){rep(i,n){if(i)cout<<' ';cout<<a[i];}cout << "\n";}
ld PI=3.14159265358979323846;

int main(){
    ll N;
    cin >> N;
    string S = "";
    ll cur = 1;
    if(N==0){
        cout << 0 << endl;
        return 0;
    }
    while(N){
        if(N % -2){
            S = "1" + S;
            N--;
        }else{
            S = "0" + S;
        }
        N /= -2;
    }
    cout << S << endl;
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string A;
  cin >> A;
  if(A[1]=='A' && A[2]=='C'||A[0]=='A'&& A[1]=='C'||A[2]=='A'&&A[3]=='C'||A[3]=='A'&&A[4]=='C'){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}