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