n=gets.to_i p n<26?'D.F.HHH.L.NHH.I.TTH.XX'[n-4].ord-65:3>n%8+`factor #{n-8}`.count(' ')?14:8