Consider the N sums
a
1 a
1 + a
2
...
...
a
1 + a
2 + ... + a
n
If no two of these N sums have the same residue mod N, then one of the sums has residue 0 mod N, and we are done.
Otherwise, 2 of these sums have the same residue mod N, and we can take their difference.