#include using namespace std; int main( int argc, char *argv[] ) { int i; int A; int B; int N; ios::sync_with_stdio( false ); cin.tie( 0 ); cin >> A; cin >> B; N = A + 5 * B; if( A >= 4 ) { for( i = 1; i <= N; i++ ) cout << i << endl; } else { for( i = 1; i <= N; i++ ) { if( i % 5 <= A ) cout << i << endl; } } return 0; }