require'prime' n=gets.to_i p n<26?'D.F.HHH.L.NHH.I.TTH.XX'[n-4].ord-65:1==n%8&&Prime.prime?(n-8)?14:8