#include <iostream>
#include <cstdio>
using namespace std;

const int N = 600;
long long dp[8];
long long bs[N + 7];
long long a[N + 7];

int main() {
	ios_base::sync_with_stdio(0);
	dp[0] = bs[0] = 1;
	
	for(int i = 1; i <= N; ++i) {
		for(int j = 1; j <= 7; ++j) dp[j] += dp[j - 1];
		bs[i] = dp[7];
	}
	
	int ile = 7 * N;
	long long k;
	cin >> k;
	for(int i = N; i > 0; --i) {
		a[i] = k / bs[i];
		k -= a[i] * bs[i];
		ile += a[i];
	}
	
	for(int i = 1; i <= N; ++i) {
		cout << "FESTIVA";
		for(int j = 0; j < a[i]; ++j) cout << 'L';
	}
	return 0;
}