#include <bits/stdc++.h>
using namespace std;
int a, b, n;
int main() {
  scanf("%d%d%d", &n, &a, &b);
  int i;
  int cur, ta = 0, tb = 0;
  if (2 * a + b == n) {
    printf("%d\n", 2);
    return 0;
  }
  for (i = 1;; i++) {
    cur = n;
    if (ta >= 4 && tb >= 2) break;
    if (a >= b) {
      while (ta < 4 && cur >= a) {
        cur -= a;
        ta++;
      }
      while (tb < 2 && cur >= b) {
        cur -= b;
        tb++;
      }
    } else {
      while (tb < 2 && cur >= b) {
        cur -= b;
        tb++;
      }
      while (ta < 4 && cur >= a) {
        cur -= a;
        ta++;
      }
    }
  }
  printf("%d\n", i - 1);
  return 0;
}
