from numpy.linalg import norm

vals = [int(i) for i in input().split()]
print(int(norm(vals, ord=1)))