#include int main(void) { int _1yenc, _5yenc, _5yen = 0, total = 0, i, j; scanf("%d %d", &_1yenc, &_5yenc); if(_1yenc < 5){ i = 1; do{ for(j = 1; j <= _1yenc; j++){ printf("%d\n", _5yen+j); } if(_5yenc-i >= 0){ _5yen = i * 5; printf("%d\n", _5yen); } if(i == _5yenc){ for(j = 1; j <= _1yenc; j++){ printf("%d\n", _5yen+j); } } i++; }while(i <= _5yenc); }else{ _5yen = _5yenc*5; total = _5yen + _1yenc; for(i = 1; i <= total; i++){ printf("%d\n", i); } } return 0; }