#include <iostream>
using namespace std;
int main()
{
const unsigned patternSize = 10;
const unsigned outputLen = 25 ;
int pattern[patternSize] = {0,1,2,3,4,5,6,7,8,9};
for(int i=0; i<outputLen; i++)
cout << pattern[i%patternSize] << ' ' ;
cout << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBjb25zdCB1bnNpZ25lZCBwYXR0ZXJuU2l6ZSA9IDEwOwogICAgY29uc3QgdW5zaWduZWQgb3V0cHV0TGVuID0gMjUgOwoKICAgIGludCBwYXR0ZXJuW3BhdHRlcm5TaXplXSA9IHswLDEsMiwzLDQsNSw2LDcsOCw5fTsKICAgIGZvcihpbnQgaT0wOyBpPG91dHB1dExlbjsgaSsrKQogICAgICAgIGNvdXQgPDwgcGF0dGVybltpJXBhdHRlcm5TaXplXSA8PCAnICcgOwogICAgCiAgICBjb3V0IDw8IGVuZGw7Cn0=