#include <bits/stdc++.h>
using namespace std;
vector<long long> v[111111];
long long a[1111111] = {0};
int main() {
  long long k, l, m, n, d;
  cin >> k >> l >> m >> n >> d;
  long long arr[] = {k, l, m, n};
  for (long long i = 0; i < 4; i++)
    for (long long j = arr[i]; j <= d; j += arr[i]) a[j]++;
  long long ans = 0;
  for (long long j = 1; j <= d; j++)
    if (a[j]) ans++;
  cout << ans;
}
