#include <random>
#include <iostream>
const int N=6;
const int X=1000000;
int main(int, char**)
{
int n1[N]={},n2[N]={};
::std::random_device rd;
unsigned int s = rd();
::std::mt19937 g1(s),g2(s);
for( int i=0; i < X; ++i )
{
n1[ g1()%N ]++;
n2[ ::std::uniform_int_distribution<unsigned int>(0, N-1)(g2) ]++;
}
for( int i=0; i < N; ++i )
{
::std::cout << n1[i] << ", " << n2[i] << ::std::endl;
}
return 0;
}
I2luY2x1ZGUgPHJhbmRvbT4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKY29uc3QgaW50IE49NjsKY29uc3QgaW50IFg9MTAwMDAwMDsKaW50IG1haW4oaW50LCBjaGFyKiopCnsKICAgIGludCBuMVtOXT17fSxuMltOXT17fTsKICAgIDo6c3RkOjpyYW5kb21fZGV2aWNlIHJkOwogICAgdW5zaWduZWQgaW50IHMgPSByZCgpOwogICAgOjpzdGQ6Om10MTk5MzcgZzEocyksZzIocyk7CiAgICBmb3IoIGludCBpPTA7IGkgPCBYOyArK2kgKQogICAgewogICAgICAgIG4xWyBnMSgpJU4gXSsrOwogICAgICAgIG4yWyA6OnN0ZDo6dW5pZm9ybV9pbnRfZGlzdHJpYnV0aW9uPHVuc2lnbmVkIGludD4oMCwgTi0xKShnMikgXSsrOwogICAgfQogICAgZm9yKCBpbnQgaT0wOyBpIDwgTjsgKytpICkKICAgIHsKICAgICAgICA6OnN0ZDo6Y291dCA8PCBuMVtpXSA8PCAiLCAiIDw8IG4yW2ldIDw8IDo6c3RkOjplbmRsOwogICAgfQogICAgcmV0dXJuIDA7Cn0=