#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
typedef long long ll;
#define rep(i, a, b) for (int i = a; i <= b; ++ i)
using namespace std;
ll h[10], f[1010], n, c[1000];
int main() {
	scanf("%lld", &n);
	rep(i, 1, 4200) {
		if (i % 7 == 1) ++ h[1]; else 
			h[i % 7] += h[(i + 6) % 7];
		if (i % 7 == 0) f[i / 7] = h[0];
	}
	for (int i = 600; i; -- i) c[i] = n / f[i], n %= f[i];
	int sum = 0;
	rep(i, 1, 600) {
		printf("FESTIVA");
		rep(j, 1, c[i]) printf("L");
		sum += c[i] + 7;
	}
	return 0;
}