#include <bits/stdc++.h>
int main() {
  int t, k, l, m, n, ans;
  scanf("%d %d %d %d %d", &k, &l, &m, &n, &t);
  ans = 0;
  for (int i = 1; i <= t; i++)
    if (i % k == 0 || i % l == 0 || i % m == 0 || i % n == 0) {
      ans++;
    }
  printf("%d\n", ans);
  return 0;
}
