#include <bits/stdc++.h>
int a[5], n, dizi[100005], syc;
int main() {
  scanf("%d %d %d %d", &a[0], &a[1], &a[2], &a[3]);
  scanf("%d", &n);
  for (int i = 0; i < 4; i++) {
    for (int j = 1; j <= n; j++)
      if (j % a[i] == 0) dizi[j] = 1;
  }
  for (int i = 1; i <= n; i++)
    if (dizi[i]) syc++;
  printf("%d", syc);
  scanf(" ");
}
