#include <bits/stdc++.h>
using namespace std;
inline int read() {
  register int res = 0, c, d = 0;
  while (c = getchar(), c < '0' || c > '9')
    ;
  do {
    res = (res << 3) + (res << 1) + (c ^ 48);
  } while (c = getchar(), c >= '0' && c <= '9');
  return res;
}
int main() {
  int N = read(), a = read(), b = read(), ans = 100;
  int s[6] = {a, a, a, a, b, b};
  sort(s, s + 6);
  do {
    int cnt = 0, sum = 0;
    for (int i = 0; i < 6; i++) {
      if (sum + s[i] > N)
        cnt++, sum = s[i];
      else
        sum += s[i];
    }
    if (sum) cnt++;
    ans = min(ans, cnt);
  } while (next_permutation(s, s + 6));
  printf("%d\n", ans);
  return 0;
}
