#include #include #include #include #include using namespace std; using ll = long long; void solve(); int main() { solve(); #ifdef DBG while (true); #endif } //542 void solve() { int O, F; scanf("%d %d", &O, &F); for (int five = 0; five <= F; five++) for (int one = five != 0 ? 0 : 1; one <= min(4, O); one++) printf("%d\n", five * 5 + one); for (int one = 5; one <= O; one++) printf("%d\n", F * 5 + one); }