v = list(map(int, input().split()))
s = 0
for i in range(len(v)):
    s += abs(v[i])
print(s)