w, z, b = map(float, input().split()) s = w + z s += w * b s += z * b print(int(s))