public void solve() throws IOException {
    long n = nextLong();
    long a = nextLong();
    long b = nextLong();

    long required = 6L * n;

    if (required < a * b) {
      System.out.println(a * b);
      System.out.println(a + " " + b);
      return;
    }

    long min = Long.MAX_VALUE;
    long mina = -1, minb = -1;

    boolean swap = false;
    if (a > b) {
      long temp = a;
      a = b;
      b = temp;
      swap = true;
    }

    for (long x = a; x < 1000000; x++) {
      long newb = required / x + ((required % x == 0) ? 0 : 1);
      if (newb < b) {
        break;
      }
      long total = newb * x;
      if (total < min) {
        min = total;
        mina = x;
        minb = newb;
      }
      if (min == required) {
        break;
      }
    }

    System.out.println(min);
    if (!swap)
      System.out.println(mina + " " + minb);
    else
      System.out.println(minb + " " + mina);
  }