#include using namespace std; int main(){ int N,S=0; cin >> N; for(int i=0;i> A; S += A; } int cnt = 0; for(int i=0;i<=100;i++) if((S+i)%N == 0) cnt++; cout << cnt << endl; }