#include <iostream>
#include <cstdlib>
#include <ctime>
int main()
{
std::srand( std::time(nullptr) ) ;
for( int i = 0 ; i < 5 ; ++i ) // 5 lines
{
for( int j = 0 ; j < 7 ; ++j ) // write 7 random digits per line
std::cout << std::rand() % 10 << ' ' ;
std::cout << '\n' ; // and end with a new line
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGxpYj4KI2luY2x1ZGUgPGN0aW1lPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OnNyYW5kKCBzdGQ6OnRpbWUobnVsbHB0cikgKSA7CgogICAgZm9yKCBpbnQgaSA9IDAgOyBpIDwgNSA7ICsraSApIC8vIDUgbGluZXMKICAgIHsKICAgICAgICBmb3IoIGludCBqID0gMCA7IGogPCA3IDsgKytqICkgLy8gd3JpdGUgNyByYW5kb20gZGlnaXRzIHBlciBsaW5lCiAgICAgICAgICAgIHN0ZDo6Y291dCA8PCBzdGQ6OnJhbmQoKSAlIDEwIDw8ICcgJyA7CgogICAgICAgIHN0ZDo6Y291dCA8PCAnXG4nIDsgLy8gYW5kIGVuZCB3aXRoIGEgbmV3IGxpbmUKICAgIH0KfQo=