#include <bits/stdc++.h>
using namespace std;
const long long int N = 2e5 + 5, MOD = 1000000007;
long long int n, a, b, sum;
long long int calc(int c, int sol, int inda, int indb, int hd) {
  if (inda > 4) return 1e18;
  if (indb > 2) return 1e18;
  if (sol >= sum && c > n) return 1;
  if (sol >= sum) return 0;
  if (c > n) {
    if (hd == 1)
      c = a;
    else
      c = b;
    return 1 + min(calc(c + a, sol + a, inda + 1, indb, 1),
                   calc(c + b, sol + b, inda, indb + 1, 2));
  } else {
    return min(calc(c + a, sol + a, inda + 1, indb, 1),
               calc(c + b, sol + b, inda, indb + 1, 2));
  }
}
int main() {
  cin >> n >> a >> b;
  sum = a * 4 + b * 2;
  cout << calc(0, 0, 0, 0, 0) + 1;
  return 0;
}
