#include <bits/stdc++.h>
using namespace std;
int main() {
  int K, L, M, N, D;
  cin >> K >> L >> M >> N >> D;
  if (K == 1 || L == 1 || M == 1 || N == 1) {
    cout << D << endl;
  } else {
    int *Arr = new int[D + 1];
    for (int i = 1; i <= D; i++) Arr[i] = 0;
    for (int i = K; i <= D; i += K) Arr[i] = 1;
    for (int i = L; i <= D; i += L) Arr[i] = 1;
    for (int i = M; i <= D; i += M) Arr[i] = 1;
    for (int i = N; i <= D; i += N) Arr[i] = 1;
    int Sol = 0;
    for (int i = 1; i <= D; i++)
      if (Arr[i] == 0) Sol++;
    cout << D - Sol << endl;
  }
  return 0;
}
