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

using namespace std;

int main() {
	string n4;

	cin >> n4;
	auto n4_rev = n4;
	reverse(n4_rev.begin(), n4_rev.end());

	int x = 0;
	for (auto c : n4_rev) {
		x = x * 4 + (c - '0');
		x %= 15;
	}

	string ans = "";
	if (x % 3 == 0) { ans += "Fizz"; }
	if (x % 5 == 0) { ans += "Buzz"; }
	if (ans.empty()) { ans = n4; }

	cout << ans << endl;
	return 0;
}