#include using namespace std; long long gcd(long long x, long long y) { if (y == 0) return x; return gcd(y, x % y); } long long lcm(long long x, long long y) { if (x == 0 || y == 0) return 0; return x / gcd(x, y) * y; } int main() { int A, B; cin >> A >> B; for (int i = 0; i <= B; i++) { if (i != 0) cout << i * 5 << endl; for (int j = 1; j <= A; j++) { cout << j + i * 5 << endl; } } }