#include using namespace std; int main(){ int one, five; int i, j, ans = 0; cin >> one >> five; if(one == 0){ for(i = 0; i < five; i++){ ans += 5; cout << ans << endl; } }else if(five == 0){ for(i = 0; i < one; i++){ ans += 1; cout << ans << endl; } }else if(one < 4){ for(i = 0; i < five + 1; i++){ for(j = 0; j < one; j++){ ans += 1; cout << ans << endl; } if(ans == one + 5*five){ break; } ans += 5 - one; cout << ans << endl; if(ans == one + 5*five){ break; } } }else{ for(i = 1; i <= one + 5*five; i++){ cout << i << endl; } } return 0; }