#include <iostream>
#include <algorithm>
#include <string>

using namespace std;

typedef long long lli;

lli s;
lli data[19];
string str[3] = {"Fizz", "Buzz", "FizzBuzz"};

lli calc(lli x, lli keta){
   lli l = 1;
   for(lli i=1;i<keta;i++){
      l *= 10;
   }
   lli res = (x - l + 1) * keta;
   lli tl = (l-1) / 3;
   lli tr = x / 3;
   lli cnt3 = tr - tl;
   tl = (l-1) / 5;
   tr = x / 5;
   lli cnt5 = tr - tl;
   tl = (l-1) / 15;
   tr = x / 15;
   lli cnt15 = tr - tl;
   cnt3 -= cnt15;
   cnt5 -= cnt15;
   res -= cnt3 * keta;
   res += cnt3 * 4;
   res -= cnt5 * keta;
   res += cnt5 * 4;
   res -= cnt15 * keta;
   res += cnt15 * 8;
   return res;
}

void init(){
   data[0] = 0;
   lli l = 1;
   lli r = 9;
   for(int i=1;i<=18;i++){
      data[i] = (r - l + 1) * i;
      lli tl = (l-1) / 3;
      lli tr = r / 3;
      lli cnt3 = tr - tl;
      tl = (l-1) / 5;
      tr = r / 5;
      lli cnt5 = tr - tl;
      tl = (l-1) / 15;
      tr = r / 15;
      lli cnt15 = tr - tl;
      cnt3 -= cnt15;
      cnt5 -= cnt15;
      data[i] -= cnt3 * i;
      data[i] += cnt3 * 4;
      data[i] -= cnt5 * i;
      data[i] += cnt5 * 4;
      data[i] -= cnt15 * i;
      data[i] += cnt15 * 8;
      l = l * 10;
      r = r * 10 + 9;
   }
   lli sum = 0;
   lli idx;
   for(int i=1;i<=18;i++){
      //cout << sum << " + " << data[i] << " = " << sum + data[i] << endl;
      if(sum + data[i] >= s){
	 idx = i;
	 break;
      }
      sum += data[i];
   }
   l = 1;
   r = 9;
   for(int i=1;i<idx;i++){
      l = l * 10 ;
      r = r * 10 + 9;
   }
   r++;
   while(r - l > 1){
      lli mid = (l + r) / 2;
      lli tmp = calc(mid, idx) + sum;
      if(tmp >= s){//ue
	 r = mid;
      }else{//sita
	 l = mid;
      }
   }

   lli cnt = calc(l, idx) + sum;
   string ans;
   lli next = idx;
   if(l%15 == 0) next = 8;
   else if(l%5==0 || l%3==0) next = 4;
   lli tmp = cnt - s + 1;
   if(tmp < 0) tmp = 0;
   if(l%15 == 0){
      ans += str[2].substr((int)str[2].size() - tmp);
   }else if(l%3 == 0){
      ans += str[0].substr((int)str[0].size() - tmp);
   }else if(l%5 == 0){
      ans += str[1].substr((int)str[1].size() - tmp);
   }else{
      lli t = l;
      string rev;
      for(lli i=0;i<tmp&&t!=0;i++){
	 rev += (char)(t%10+'0');
	 t /= 10;
      }
      reverse(rev.begin(), rev.end());
      ans += rev;
      }
   l++;
   for(;;l++){
      lli next = idx;
      if(l%15 == 0) next = 8;
      else if(l%5==0 || l%3==0) next = 4;
      if(cnt + next < s){
	 cnt += next;
	 continue;
      }
      else if(cnt + next >= s){
	 lli tmp = (cnt + next) - s + 1;
	 if(l%15 == 0){
	    ans += str[2].substr((int)str[2].size() - tmp);
	 }else if(l%3 == 0){
	    ans += str[0].substr((int)str[0].size() - tmp);
	 }else if(l%5 == 0){
	    ans += str[1].substr((int)str[1].size() - tmp);
	 }else{
	    lli t = l;
	    string rev;
	    for(lli i=0;i<tmp&&t!=0;i++){
	       rev += (char)(t%10+'0');
	       t /= 10;
	    }
	    reverse(rev.begin(), rev.end());
	    ans += rev;
	 }
	 l++;
	 break;
      }
   }
   while(ans.size() < 20){
      if(l%15 == 0) ans += str[2];
      else if(l%3 == 0) ans += str[0];
      else if(l%5 == 0) ans += str[1];
      else{
	 lli t = l;
	 string rev;
	 while(t>0){
	    rev += (char)(t%10+'0');
	    t /= 10;
	 }
	 reverse(rev.begin(), rev.end());
	 ans += rev;
      }
      l++;
   }
   cout << ans.substr(0, 20) << endl;
}

main(){
   cin >> s;
   //for(s=1;s<=24;s++){
   //cout << s << ' ';
      init();
      // }
}

Measured memory_bytes: 1212