#-*- utf-8 -*-

#use to cacluate the total number of flights in China per day
#res=6,000 

import string

count =0 

for line in open('flightID.txt'):
    ids= line.split(' ')
    #print ids
    count = count+ len(ids)

print count


