integer(16) N,comb(1:600),cnt(1:600)
character(5000) ans
read*,N
comb(1)=1
do i = 2,600
  comb(i) = comb(i-1)* (i+6) / (i-1)
end do
do i=600,1,-1
  cnt(i) = N / comb(i)
  N =mod(N,comb(i))
end do

ans=""
do i=1,600
  ans=trim(ans)//"FESTIVA"//repeat("L",cnt(i))
end do
print"(A)",trim(ans)
end