#include <bits/stdc++.h>   using namespace std;   string s =  FESTIVAL ;   long long dp[1010][10];   int a[1010];   int main(void) {     int i, j, k;     dp[0][0] = 1;     for ((i) = 0; (i) < (int)(1000); (i)++)       for ((j) = 0; (j) < (int)(8); (j)++)         for ((k) = 0; (k) < (int)(8); (k)++)           if (j <= k) dp[i + 1][k] = min(dp[i + 1][k] + dp[i][j], (1ll << 60));     long long K;     cin >> K;     for (i = 25; i >= 1; i--) {       a[i] = K / dp[i][7];       K %= dp[i][7];     }     string s;     for ((i) = 0; (i) < (int)(25); (i)++) {       s +=  FESTIVA ;       for ((j) = 0; (j) < (int)(a[i + 1]); (j)++) s +=  L ;     }     cout << s <<     <<  FESTIVAL  << endl;     return 0;   }   