#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x1, x2, x3, x4, n, i, k = 0;
  cin >> x1 >> x2 >> x3 >> x4 >> n;
  for (i = 1; i <= n; i++) {
    if ((i % x1 == 0) || (i % x2 == 0) || (i % x3 == 0) || (i % x4 == 0)) {
      k++;
    }
  }
  cout << k;
  return 0;
}
