import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.stdio;

void main() {
    auto K = readln.chomp.to!BigInt;

    auto F = new BigInt[](610);
    F[0] = F[1] = 1;
    foreach (i; 2..610) F[i] = F[i-1] * i;

    auto ans = new BigInt[](601);
    foreach_reverse (i; 1..601) {
        auto v = F[i+6] / F[7] / F[i-1];
        ans[i] = K / v;
        K %= v;
    }

    string anss = "";
    foreach (i; 1..601) {
        anss ~= "FESTIVA";
        foreach (j; 0..ans[i].to!long) {
            anss ~= "L";
        }
    }

    anss.writeln;
}
