#girisdoyasi = open("training.txt", "r")

# for satir_girisdoyasi in girisdoyasi:
#    print(satir_girisdoyasi)

"""satirlar = girisdoyasi.readlines()

print(len(satirlar))
girisdoyasi.close()"""

#for x in satirlar:
  #  print(x),

""""i=girisdoyasi.readline()
for i in girisdoyasi:
    print(i.rstrip()"""

#datam=girisdoyasi.read()
#words=datam.split()

#print(len(words))
#print(words)

print (len(set(w.lower() for w in open('training.txt').read().split())))
print(set."")

#girisdoyasi.close()
