a = [2, 3, 4, 7, 9, 11]

x = input()
if x in a:
    print "hast"
else:
    print "nist"

if 7 not in a:
    print "7 dar a nist"


s = "Salam"
if 'a' in s:
    print 'hast'

if 'a' in a:
    print 'hast'
else:
    print 'nist'
