#include using namespace std; int main() { int A, B; cin >> A >> B; set< int > st; for(int i = 1; i <= A; i++) { for(int j = 1; j <= B; j++) { st.emplace(i + j * 5); } } cout << st.size() << endl; }