#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, l, m, n, d, p, o = 0;
  cin >> k >> l >> m >> n >> d;
  p = d;
  if (k == 1 || l == 1 || n == 1 || m == 1) {
    cout << d;
    return 0;
  } else {
    while (d != 0) {
      if (d % k != 0 && d % l != 0 && d % m != 0 && d % n != 0) o++;
      d--;
    }
  }
  cout << p - o;
}
