#include<iostream>
using namespace std;
int main ()
{
long long a, b, c, d, e, o, o2;
cin>>a>>b>>c>>d>>e;
    o=a*a*a+b*b*b+c*c*c+d*d*d;
    o2=e*e*e;
    if(o%o2==0&&a*a*6+b*b*6+c*c*6+d*d*6<=e*e*6*o/o2)
    {
        cout<<o/o2;
    }
    else
    {
        cout<<o/o2+1;
    }
    return 0;
}
