#include <bits/stdc++.h>
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  a == 1 && b == 3
      ? printf(
            "3 \n We can first make one apple pie by simmering two of the "
            "three pieces of apple. Then, we can make two more by simmering "
            "the remaining piece and three more pieces obtained by cutting the "
            "whole apple.\n",
            b)
      : printf("%d\nWe cannot make an apple pie in this case, unfortunately.\n",
               a);
  return 0;
}
