#include int main() { int a, b; scanf("%d%d", &a, &b); int i; for (i = 1; i <= a + 5 * b; i++) if (i % 5 <= a) printf("%d\n", i); return 0; }