# Wrong: adds absolute values, so only groups with negative numbers fail. import sys print(sum(abs(int(token)) for token in sys.stdin.read().split()))