#include <stdlib.h>
int square(int *arr) {
int result = 0;
for (int i = 0; i < 8; ++i) {
result += arr[i];
}
return result;
}
int main(int argc, char **argv) {
int array[8];
for (int i = 0; i < 7; ++i) {
array[i] = atoi(argv[1 + i]);
}
auto x = square(array);
return x;
}