#include<cstdio>
using namespace std;
int a,b;
int main()
{
	scanf("%d %d",&a,&b);
	printf("%d",a/b);
	return 0;
}
#include <iostream>
#include <vector>
using namespace std;
 
int main(){
  int minv=100;
  vector<int> a(4);
  
  for (int i = 0; i < 4; ++i) cin >> a[i];
    
  for (int i = 0; i < 4; ++i){
    if (minv > a[i]) minv = a[i];
  }
  cout << minv << endl;
}