#include <bits/stdc++.h>
using namespace std;
bool compare(string a, string b) { return a.length() < b.length(); }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, a, b;
  cin >> n >> a >> b;
  int dp[1000][1000];
  dp[0][0] = 0;
  for (int i = 0; i < 5; i++) {
    for (int j = 0; j < 3; j++) {
      dp[i][j] = i + j;
      for (int i1 = 0; i1 <= i; i1++) {
        for (int j1 = 0; j1 <= j; j1++) {
          int i2 = i - i1;
          int j2 = j - j1;
          if (i2 * a + j2 * b <= n) {
            dp[i][j] = min(dp[i1][j1] + 1, dp[i][j]);
          }
        }
      }
    }
  }
  cout << dp[4][2];
}
