#include <stdio.h>
#define N 10
int main()
{
int a[N],i,j;
for (i = 0; i < N; ++i)
for (j = 10; j ; --j) {
for (i = 0; i < j; ++i) {
a[i] += a[i + 1];
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNkZWZpbmUgTiAxMAppbnQgbWFpbigpCnsKICBpbnQgYVtOXSxpLGo7CiAgZm9yIChpID0gMDsgaSA8IE47ICsraSkKICAgIHNjYW5mKCIlZCIsIGEgKyBpKTsKICBmb3IgKGogPSAxMDsgaiA7IC0taikgewogICAgZm9yIChpID0gMDsgaSA8IGo7ICsraSkgewogICAgICBwcmludGYoIiVkICIsIGFbaV0gJSAxMCk7CiAgICAgIGFbaV0gKz0gYVtpICsgMV07CiAgICB9CiAgICBwdXRjaGFyKCdcbicpOwogIH0KICByZXR1cm4gMDsKfQ==