#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,n) for(int i=0; i=b; --i) #define ALL(c) (c).begin(), (c).end() typedef long long ll; typedef vector VI; typedef vector VL; typedef vector VVI; typedef vector VVL; typedef pair P; typedef pair PL; int main() { int a, b; cin >> a >> b; FOR(i,1,700){ int x = min(b, i / 5); if (i - 5*x <= a) cout << i << endl; } return 0; }