#include using namespace std; int main() { int A, B; cin >> A >> B; bitset<601> dp; dp[0] = 1; for (int i = 0; i < A; i++) { dp |= dp << 1; } for (int i = 0; i < B; i++) { dp |= dp << 5; } for (int i = 1; i <= 600; i++) { if (dp[i] == 1) { cout << i << "\n"; } } }