https://www.acmicpc.net/problem/5532
#include <cmath>를 해준 뒤 올림 함수인 ceil() 을 사용하면 간단하게 구현할 수 있다!
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int l, a, b, c, d;
cin >> l >> a >> b >> c >> d;
int kor = (int)ceil((double)a / c);
int math = (int)ceil((double)b / d);
int days = max(kor, math);
cout << l - days << endl;
return 0;
}