#include <iostream>
using namespace std;
int main() {
int a, b;
int number = 0;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % 7 == 0) {
number++;
cout << i << ' ';
}
}
cout << "\n";
cout << "number: " << number << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgaW50IGEsIGI7CiAgICBpbnQgbnVtYmVyID0gMDsKICAgIGNpbiA+PiBhID4+IGI7CiAgICBmb3IgKGludCBpID0gYTsgaSA8PSBiOyBpKyspIHsKICAgICAgICBpZiAoaSAlIDcgPT0gMCkgewogICAgICAgICAgICBudW1iZXIrKzsKICAgICAgICAgICAgY291dCA8PCBpIDw8ICcgJzsKICAgICAgICB9CiAgICB9CgogICAgY291dCA8PCAiXG4iOwogICAgY291dCA8PCAibnVtYmVyOiAiIDw8IG51bWJlciA8PCAiXG4iOwoKICAgIHJldHVybiAwOwp9