#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, a, b;
  cin >> n >> a >> b;
  long long fg = 0;
  long long ma;
  if (a > b) {
    fg = 2;
    ma = a;
  } else
    ma = b;
  long long p = n;
  long long cnt = 0;
  long long cnt2 = 0;
  long long ans = 1;
  while (1) {
    long long tt = 0;
    if (cnt != 4) {
      if (n >= a) {
        n -= a;
        cnt++;
        tt = 1;
      }
    }
    if (cnt2 != 2) {
      if (n >= b) {
        n -= b;
        cnt2++;
        tt = 1;
      }
    }
    if (cnt2 == 2 && cnt == 4) {
      cout << ans;
      return 0;
    }
    if (tt == 0) {
      n = p;
      ans++;
    }
  }
  return 0;
}
