#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
int main()
{
std::vector<int> v(10,1 );
std::partial_sum(v.begin(), v.end(), v.begin());
std::random_shuffle(v.begin(), v.end());
for(std::size_t n=0; n<v.size(); ++n)
std::cout << v[n] << ' ';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8bnVtZXJpYz4KaW50IG1haW4oKQp7CiAgICBzdGQ6OnZlY3RvcjxpbnQ+IHYoMTAsMSApOwogICAgc3RkOjpwYXJ0aWFsX3N1bSh2LmJlZ2luKCksIHYuZW5kKCksIHYuYmVnaW4oKSk7CiAgICBzdGQ6OnJhbmRvbV9zaHVmZmxlKHYuYmVnaW4oKSwgdi5lbmQoKSk7CgogICAgZm9yKHN0ZDo6c2l6ZV90IG49MDsgbjx2LnNpemUoKTsgKytuKQogICAgICAgIHN0ZDo6Y291dCA8PCB2W25dIDw8ICcgJzsKfQo=