/* Author haleyk10198 */
/* 作者: haleyk10198 */
#include <bits/stdc++.h>
#define MOD 1000000007
#define LINF (1LL<<60)
#define INF 2147483647
#define PI 3.1415926535897932384626433
#define ll long long
#define pii pair<int,int>
#define mp(x,y) make_pair((x),(y))
using namespace std;
string itos(int x){
stringstream ss;
ss << x;
return ss.str();
}
ll t[100010];
int n = 10;
void add(int pos, int v, ll *t){
for( ++pos; pos; pos -= (pos & -pos))
t[pos] += v;
}
ll ask(int pos, ll *t){
ll res = 0;
for( ++pos; pos <= n; pos += (pos & -pos))
res += t[pos];
return res;
}
int main(){
//freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
ios_base::sync_with_stdio(false);
add(-1, -2, t);
add(3, 2, t);
add(1, -3, t);
add(3, 3, t);
add(5, -9, t);
add(7, 9, t);
for(int i = 0; i < n; i++)
cout << ask(i, t) << (i+1 == '\n'? ' ': ' ');
return 0;
}
LyogQXV0aG9yIGhhbGV5azEwMTk4ICovCi8qIOS9nOiAhTogIGhhbGV5azEwMTk4ICovCiNpbmNsdWRlIDxiaXRzL3N0ZGMrKy5oPgoKI2RlZmluZSBNT0QgMTAwMDAwMDAwNwojZGVmaW5lIExJTkYgKDFMTDw8NjApCiNkZWZpbmUgSU5GIDIxNDc0ODM2NDcKI2RlZmluZSBQSSAzLjE0MTU5MjY1MzU4OTc5MzIzODQ2MjY0MzMKI2RlZmluZSBsbCBsb25nIGxvbmcKI2RlZmluZSBwaWkgcGFpcjxpbnQsaW50PgojZGVmaW5lIG1wKHgseSkgbWFrZV9wYWlyKCh4KSwoeSkpCgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RyaW5nIGl0b3MoaW50IHgpewoJc3RyaW5nc3RyZWFtIHNzOwoJc3MgPDwgeDsKCXJldHVybiBzcy5zdHIoKTsKfQoKbGwgdFsxMDAwMTBdOwoKaW50IG4gPSAxMDsKCnZvaWQgYWRkKGludCBwb3MsIGludCB2LCBsbCAqdCl7Cglmb3IoICsrcG9zOyBwb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