#include <bits/stdc++.h>
using namespace std;
int n, a, b, fr[1005], d, e, m, r;
int main() {
  cin >> n >> a >> b;
  fr[a] += 4;
  fr[b] += 2;
  if (b > a) {
    int aux = a;
    a = b;
    b = aux;
  }
  while (fr[a] || fr[b]) {
    m = n;
    r++;
    while (1) {
      if (fr[a] > 0 && a * fr[a] >= b * fr[b] && a <= m) {
        fr[a]--;
        m -= a;
      } else if (fr[b] > 0 && b <= m) {
        fr[b]--;
        m -= b;
      } else
        break;
    }
  }
  cout << r;
}
