#include<bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin()
#define en end()
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
ll f[1000];
int main()
{
Faster;
ll n; cin >> n;
f[0] = 0;
f[1] = 1;
for(int i = 2; i <1000; i++)
{
f[i] = f[i-1] + f[i-2];
if(f[i] == n || n == 0)
{
cout << "yes";
return 0;
}
if(f[i] > n)
{
cout << "no";
return 0;
}
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBlbCAiXG4iCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgdWxsIHVuc2lnbmVkIGxvbmcgbG9uZwojZGVmaW5lIHNlIHNlY29uZAojZGVmaW5lIGZpIGZpcnN0CiNkZWZpbmUgYmUgYmVnaW4oKQojZGVmaW5lIGVuIGVuZCgpCiNkZWZpbmUgRmFzdGVyIGNpbi50aWUoMCk7IGNvdXQudGllKDApOyBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwpsbCBmWzEwMDBdOwppbnQgbWFpbigpCnsKICAgIEZhc3RlcjsKICAgIGxsIG47IGNpbiA+PiBuOwogICAgZlswXSA9IDA7CiAgICBmWzFdID0gMTsKICAgIGZvcihpbnQgaSA9IDI7IGkgPDEwMDA7IGkrKykKICAgIHsKICAgICAgICBmW2ldID0gZltpLTFdICsgZltpLTJdOwogICAgICAgIGlmKGZbaV0gPT0gbiB8fCBuID09IDApCiAgICAgICAgewogICAgICAgICAgICBjb3V0IDw8ICJ5ZXMiOwogICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICB9CiAgICAgICAgaWYoZltpXSA+IG4pCiAgICAgICAgewogICAgICAgICAgICBjb3V0IDw8ICJubyI7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KICAgIH0KICAgIHJldHVybiAwOwp9Cg==