#include <vector>
#include <iostream>
#include <algorithm>
#include <random>
using namespace std;
int main()
{
vector<int> box{ 1,2,3,4,5,6,7,8,9,10};
shuffle(box.begin(),box.begin()+5, mt19937(random_device()()));
for(auto i: box) cout << i << " "; cout << endl;
shuffle(box.begin(),box.begin()+5, mt19937(random_device()()));
for(auto i: box) cout << i << " "; cout << endl;
}
I2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8cmFuZG9tPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCgppbnQgbWFpbigpCnsKICAgIHZlY3RvcjxpbnQ+IGJveHsgMSwyLDMsNCw1LDYsNyw4LDksMTB9OwoKICAgIHNodWZmbGUoYm94LmJlZ2luKCksYm94LmJlZ2luKCkrNSwgbXQxOTkzNyhyYW5kb21fZGV2aWNlKCkoKSkpOwogICAgZm9yKGF1dG8gaTogYm94KSBjb3V0IDw8IGkgPDwgIiAgIjsgY291dCA8PCBlbmRsOwoKICAgIHNodWZmbGUoYm94LmJlZ2luKCksYm94LmJlZ2luKCkrNSwgbXQxOTkzNyhyYW5kb21fZGV2aWNlKCkoKSkpOwogICAgZm9yKGF1dG8gaTogYm94KSBjb3V0IDw8IGkgPDwgIiAgIjsgY291dCA8PCBlbmRsOwoKfQoK