public class Recur {
  public static int f(int x) {
    // if (x == 1 || x == 2) { // <- "base case", i.e.,
    //                         //    "when we stop"
    //   return x;
    // } else {
      return 2 * f(x - 1) + 3; // <- recursive step.
                               // call ourself
    // }
  }

  public static void main(String []args) {
    System.out.println(f(8));
  }
}
