#include <iostream>
using namespace std;

int main ()
{
    int E, A, B, C, D, p, x;
    cin >> A;
    cin >> B;
    cin >> C;
    cin >> D;
    cin >> E;

    if (E * E >= A * A + B * B + C * C + D * D){
        p = 1;
    }
    
    x = (E * E) * x >= (A * A + B * B + C * C + D * D)
    
    if (E * E < A * A + B * B + C * C + D * D && E * E * x >= A * A + B * B + C * C + D * D ){
        p = x;
    }
    
    cout << p;
}
    

