2. Let
$$
\begin{array}{l}
f(x)=x^{2}-53 x+196+\left|x^{2}-53 x+196\right| \\
\text { then } f(1)+f(2)+\cdots+f(50)=
\end{array}
$$
$$
\begin{array}{l}
x^{2}-53 x+196=(x-4)(x-49) . \\
\text { Therefore, when } 4 \leqslant x \leqslant 49, f(x)=0 . \\
\text { Then } f(1)+f(2)+\cdots+f(50) \\
=f(1)+f(2)+f(3)+f(50)=660 \text {. }
\end{array}
$$