include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
const int N=100010;
long long cnt[N],s[N];
int main(){
int n,k;
cin>>n>>k;
for(int i=1;i<=n;i){
scanf(“%d”,&s[i]);
s[i]+=s[i-1];
}
cnt[0];
long long sum;
for(int i=1;i<=n;i){
sum+=cnt[s[i]%k];
cnt[s[i]%k];
}
printf(“%lld”,sum);
}