#include <bits/stdc++.h>
using namespace std;
int dp[100000];
int main() {
  int a[4], d, sum = 0;
  memset(dp, 0, sizeof(dp));
  cin >> a[0] >> a[1] >> a[2] >> a[3] >> d;
  for (int i = 0; i < 4; i++) {
    int j = 1;
    while ((a[i] * j) <= d) {
      if (dp[a[i] * j] == 0) sum++;
      dp[a[i] * j] = 1;
      j++;
    }
  }
  cout << sum << "\n";
  return 0;
}
