#include using namespace std; int main(void) { int a, b; cin >> a >> b; for (int i = 0; i <= b; i++) { for (int j = 0; j <= (i == b ? a : min(4, a)); j++) { if (i == 0 && j == 0) continue; cout << i * 5 + j << endl; } } return 0; }