Question 1Let $x$ be a real number such that $S=\frac{\sqrt{4-x^2}+\sqrt{x^2-4}}{|x-2|}+(5+x)^{2017}$ is an integer. Find the units digit of $S$.