import sys D = [str(i) for i in range(1,10)] if sys.argv[1] == "2": D += ['one','two','three','four','five','six','seven','eight','nine'] def process_line(l): k = list() p = 0 while (p0 else 0 R=0 for l in sys.stdin.readlines(): n = process_line(l[:-1]) R+=n[1] print(R)