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