Let
f(x) = -x + 3 if x <= 1
f(x) = 2 - x if x > 1
Find the sum of all values of x such that f(x) = 0.