A certain polynomial p(x) leaves a remainder of a when divided by x - a, a remainder of b when divided by x - b, and a remainder of c when divided by x - c, where a, b, and c are different. What is the remainder when p(x) is divided by (x - a)(x - b)(x - c)?