#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int x, y;
vector<int> t;
for (x = 1; x < 5; x++) {
for (y = 1; y <= 5; y++) {
t.push_back(x+y+1+x*y);
}
}
sort(t.begin(), t.end());
for(x = 0; x < t.size(); x++) {
cout << t[x] << endl;
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWludCB4LCB5OwoJdmVjdG9yPGludD4gdDsKCWZvciAoeCA9IDE7IHggPCA1OyB4KyspIHsKCQlmb3IgKHkgPSAxOyB5IDw9IDU7IHkrKykgewoJCQl0LnB1c2hfYmFjayh4K3krMSt4KnkpOwoJCX0KCX0KCXNvcnQodC5iZWdpbigpLCB0LmVuZCgpKTsKCWZvcih4ID0gMDsgeCA8IHQuc2l6ZSgpOyB4KyspIHsKCQljb3V0IDw8IHRbeF0gPDwgZW5kbDsKCX0KCXJldHVybiAwOwp9