#include using namespace std; int main() { int i; int j; int A; int B; int iSum; cin >> A; cin >> B; if( A >= 4 ) { iSum = A + 5 * B; for( i = 1; i <= iSum; i++ ) cout << i << endl; return 0; } if( A <= 0 ) { for( i = 1; i <= B; i++ ) cout << 5 * i << endl; return 0; } for( j = 1; j <= A; j++ ) cout << j << endl; for( i = 1; i <= B; i++ ) { for( j = 0; j <= A; j++ ) cout << j + 5 * i << endl; } return 0; }