import java.util.*;
public class InsomniaCure {
public static void main(String[]args){
Scanner in=new Scanner(System.in);
int k=in.nextInt();
int l=in.nextInt();
int m=in.nextInt();
int n=in.nextInt();
int d=in.nextInt();
int count=0;
for(int i=1;i<=d;i++){
if(i%k!=0&&i%l!=0&&i%m!=0&&i%n!=0)
count++;
}
System.out.println(d-count);
}
}
tips:1、<span style="font-family: Arial, Helvetica, sans-serif;">在k l m n 这几个数据的录入中可以抽象为数组内四位元素,从而采用循环赋值方式,更加方便 。2、if判断句可用德摩根律转换成并集形式</span>