More fun in 2015, Part 33

$S=\sum\gcd(k-1,2015)$

If the sum above is taken over all integers $$k$$ with $$1\leq k\leq 2015$$ and $$\gcd(k,2015)=1$$, find $$S$$.

×