#include<bits/stdc++.h>
#define PI 3.141592653589793238462
#define eps 1e-10
using namespace std;
typedef long long ll;
typedef long double db;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<db,db> pdd;
int main(){
    int a,b,c,d;cin>>a>>b>>c>>d;
    cout<<min(min(a,b),min(c,d))<<endl;
}
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int64_t i = 0; i < (int64_t)(n); i++)
using vi = vector<int64_t>;
using vvi = vector<vi>;
using ll = int64_t;
using P = pair<ll,ll>;
ll INF = 1000000007;
// ll INF = 9223372036854775807;
// ll INF = 998244353;

int main() {
    // fasten cin
    cin.tie(0);
    ios::sync_with_stdio(false);
    // implement
    ll r,x,y;
    cin >> r >> x >> y;
    ll dd = x*x + y*y;
    ll res = ceil(sqrt(dd)/(double)r);
    if(res==1 && dd != r*r) res = 2;
    cout << res << endl;
}