#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e;
  cin >> a >> b >> c >> d;
  cin >> e;
  int i = 1, count = 0;
  while (i <= e) {
    if (i % a == 0 || i % b == 0 || i % c == 0 || i % d == 0) {
      count++;
    }
    i++;
  }
  cout << count;
}
