#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  while (scanf("%d%d%d", &n, &a, &b) != EOF) {
    if (n >= (a * 2 + b)) {
      if (n >= (a * 4 + b * 2))
        cout << 1 << endl;
      else
        cout << 2 << endl;
      continue;
    }
    int num = 1;
    if (a < b) {
      int sum = n / b;
      int temp[4];
      int flag;
      if (sum >= 2) {
        temp[0] = n - 2 * b;
        flag = 1;
      } else if (sum < 2) {
        num++;
        temp[0] = temp[1] = n - b;
        flag = 2;
      }
      sum = 0;
      for (int i = 0; i < flag; i++) {
        while (temp[i] >= a) {
          sum++;
          temp[i] -= a;
          if (sum >= 4) break;
        }
        if (sum >= 4) break;
      }
      if (sum >= 4) {
        cout << num << endl;
        continue;
      } else {
        while (sum < 4) {
          sum += n / a;
          num++;
        }
        cout << num << endl;
      }
    } else {
      int sum = n / a;
      if (sum >= 4) {
        int temp = n - 4 * a;
        sum = temp / b;
        if (sum < 2) {
          while (sum < 2) {
            sum += n / b;
            num++;
          }
          cout << num << endl;
        } else
          cout << num << endl;
      } else {
        int temp[6];
        temp[0] = n - sum * a;
        int flag = 1;
        int tmp = n;
        num++;
        while (sum < 4) {
          if (tmp < a) {
            temp[flag++] = tmp;
            tmp = n;
            num++;
          }
          tmp -= a;
          sum++;
        }
        temp[flag++] = tmp;
        sum = 0;
        for (int i = 0; i < flag; i++) {
          while (temp[i] >= b) {
            sum++;
            temp[i] -= b;
            if (sum >= 2) break;
          }
          if (sum >= 2) break;
        }
        while (sum < 2) {
          sum += n / b;
          num++;
        }
        cout << num << endl;
      }
    }
  }
  return 0;
}
