#include <bits/stdc++.h>   const int MAXN = 1000000007;   const int z = 0;   using namespace std;   int main() {     int k, l, m, n, d, ans = 0;     cin >> k >> l >> m >> n >> d;     for (int i = 1; i <= d; i++) {       if (i % k == 0 or i % l == 0 or i % m == 0 or i % n == 0) {         ans++;       }     }     cout << ans;     return 0;   }   