n=0 for s in list(open('../fd/0'))[::-1]:n+=int(s);print n