#include #include #include #include #include #include #include int main(){ int n; int x; int y,s=0; scanf("%d %d %d",&n,&x,&y); for(int a0 = 0; a0 < n; a0++){ int latitude; int longitude; int height; int points; scanf("%d %d %d %d",&latitude,&longitude,&height,&points); s+=points; } printf("%d",s); return 0; }