#include <bits/stdc++.h>
using namespace std;
int delv(int a, int b) {
  if (a % b == 0)
    return a / b;
  else
    return a / b + 1;
}
int main() {
  int k, l, m, n, d, kol = 0, r;
  cin >> k >> l >> m >> n >> d;
  for (int i = 0; i < d; i++) {
    r = i + 1;
    if ((r % k == 0) | (r % l == 0) | (r % m == 0) | (r % n == 0)) kol++;
  }
  cout << kol;
}
