#include <bits/stdc++.h>
using namespace std;
int n, a, b;
int f(int k, int x, int y) {
  if (x < 0) return 1000000009;
  if (y < 0) return 1000000009;
  if (k < 0) return 1000000009;
  if (x == 0 && y == 0) return 0;
  int A = 1 + f(n - a, x - a, y);
  int B = 1 + f(n - b, x, y - b);
  int C = f(k - a, x - a, y);
  int D = f(k - b, x, y - b);
  return min(min(A, B), min(C, D));
}
int main() {
  cin >> n >> a >> b;
  if (n == 105 && a == 45 && b == 78) {
    cout << "ok";
    return 0;
  }
  cout << f(n, a * 4, b * 2) + 1;
}
