#include int main(void){ int i, N; long long C, D, ans = 0; scanf("%d", &N); for(i=0;i