#include <algorithm>
#include <complex>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

using namespace std;
#define SAY_YES cout << "YES" << endl;
#define SAY_Yes cout << "Yes" << endl;
#define SAY_NO cout << "NO" << endl;
#define SAY_No cout << "No" << endl;
#define IFYES(TRUE_OR_FALSE)   \
    if (TRUE_OR_FALSE)         \
    {                          \
        cout << "YES" << endl; \
    }                          \
    else                       \
    {                          \
        cout << "NO" << endl;  \
    }
#define IFYes(TRUE_OR_FALSE)   \
    if (TRUE_OR_FALSE)         \
    {                          \
        cout << "Yes" << endl; \
    }                          \
    else                       \
    {                          \
        cout << "No" << endl;  \
    }
#define IFyes(TRUE_OR_FALSE)   \
    if (TRUE_OR_FALSE)         \
    {                          \
        cout << "yes" << endl; \
    }                          \
    else                       \
    {                          \
        cout << "no" << endl;  \
    }
#define DEBUG_OUTPUT_ARRAY(XXX, ONE)                            \
    for (int i = 0; i < (ONE); i++)                             \
    {                                                           \
        cout << "DEBUG: i = " << i << " -> " << XXX[i] << endl; \
    }
#define DEBUG_OUTPUT_ARRAY2(XXX, ONE, TWO)                             \
    for (int i = 0; i < (ONE); i++)                                    \
    {                                                                  \
        cout << "<<< i = " << i << " >>>" << endl;                     \
        for (int j = 0; j < (TWO); j++)                                \
        {                                                              \
            cout << "DEBUG: j = " << j << " -> " << XXX[i][j] << endl; \
        }                                                              \
    }
#define DEBUG_OUTPUT_ARRAY2_BOX(XXX, ONE, TWO) \
    for (int i = 0; i < (ONE); i++)            \
    {                                          \
        cout << i << "  ";                     \
        for (int j = 0; j < (TWO); j++)        \
        {                                      \
            cout << XXX[i][j] << " ";          \
        }                                      \
        cout << endl;                          \
    }

typedef pair<long long int, long long int> pll;


const long long int mod = 1000000007;
const long long int INF = 19999999999999;

long long int n,r[105],c[105],dp[105][105]={};
int main()
{
    cout << fixed << setprecision(18);
    cin>>n;
    long long int keta=1,tmp=0,fizzbuzzsum=0,numsum=0,memoi,memon;
    if(n<=10000){
        string str;
        for(long long int i=1;i<=5000;i++){
            if(i%3==0){str+="Fizz";}
            if(i%5==0){str+="Buzz";}
            if(i%3!=0&&i%5!=0){str+=to_string(i);}
        }
        cout<<str.substr(n-1,20)<<endl;
        return 0;

    }
    for(long long int i = 10; i <= 1e17; i*=10){
        
        numsum-=(tmp-tmp/3-tmp/5+tmp/15)*keta;
        tmp=i-1;
        fizzbuzzsum = tmp/3*4+tmp/5*4;
        numsum+=(tmp-tmp/3-tmp/5+tmp/15)*keta;
        //cout<<numsum<<" "<<fizzbuzzsum<<endl;
        if(fizzbuzzsum+numsum>=n){
            break;
        }
        keta++;
        memoi=i;
        memon=n-numsum;
    }
    n=memon;
    long long int ng=memoi-1,ok=10*memoi,mid;
    while(ok-ng>=2){
        mid=(ng+ok)/2;
        long long int restmp=(mid-mid/3-mid/5+mid/15)*keta-(memoi-1-(memoi-1)/3-(memoi-1)/5+(memoi-1)/15)*keta+mid/3*4+mid/5*4;
        if(restmp<n){
            ng=mid;
        }else{
            ok=mid;
        }
    }
    mid=ng;
    long long int restmp=(mid-mid/3-mid/5+mid/15)*keta-(memoi-1-(memoi-1)/3-(memoi-1)/5+(memoi-1)/15)*keta+mid/3*4+mid/5*4;
    string str;
    for(long long int i=ok;i<ng+30;i++){
        if(i%3==0){str+="Fizz";}
        if(i%5==0){str+="Buzz";}
        if(i%3!=0&&i%5!=0){str+=to_string(i);}
    }
    //cout<<"n = "<<n<<" restmp= "<<restmp<<" ng = "<<ng<<endl;
    //cout<<"keta ="<<keta<<endl;
    cout<<str.substr(n-restmp-1,20)<<endl;
}




Measured memory_bytes: 3336