from functools import reduce
arr = list(map(int, input().split()))
print(reduce(lambda a, x: a + abs(x), arr, 0))