#include <bits/stdc++.h>
using namespace std;
int a[1050], b[1050], n, ans = 7;
void rec(int cnt, int cur) {
  if (cnt + 1 >= ans) {
    return;
  }
  if (cur > n) {
    return;
  }
  for (int i = 1; i <= cnt; i++) {
    for (int j = 1; j <= cnt; j++) {
      for (int k = 0; k < 4; k++) {
        if (a[i] + a[j] * (1 << k) == n) {
          ans = cnt + 1;
          for (int q = 1; q <= cnt; q++) {
            b[q] = a[q];
          }
          b[ans] = n;
          return;
        }
      }
    }
  }
  for (int i = 1; i <= cnt; i++) {
    for (int k = 1; k < 4; k++) {
      if (a[i] * (1 << k) == n) {
        ans = cnt + 1;
        for (int q = 1; q <= cnt; q++) {
          b[q] = a[q];
        }
        b[ans] = n;
        return;
      }
    }
  }
  for (int i = 1; i <= cnt; i++) {
    for (int j = 1; j <= cnt; j++) {
      for (int k = 0; k < 4; k++) {
        if (a[i] + a[j] * (1 << k) > cur) {
          a[cnt + 1] = a[i] + a[j] * (1 << k);
          rec(cnt + 1, a[i] + a[j] * (1 << k));
          a[cnt + 1] = 0;
        }
      }
    }
  }
  for (int i = 1; i <= cnt; i++) {
    for (int k = 1; k < 4; k++) {
      if (a[i] * (1 << k) > cur) {
        a[cnt + 1] = a[i] * (1 << k);
        rec(cnt + 1, a[i] * (1 << k));
        a[cnt + 1] = 0;
      }
    }
  }
}
void print(int q) {
  for (int i = 1; i < q; i++) {
    for (int k = 1; k < 4; k++) {
      if (b[i] * (1 << k) == b[q]) {
        cout << "lea e" << (char)('a' + q - 1) << "x, [" << (1 << k) << "*e"
             << (char)('a' + i - 1) << "x]" << endl;
        return;
      }
    }
  }
  for (int i = 1; i < q; i++) {
    for (int j = 1; j < q; j++) {
      for (int k = 0; k < 4; k++) {
        if (b[i] + b[j] * (1 << k) == b[q]) {
          cout << "lea e" << (char)('a' + q - 1) << "x, [e"
               << (char)('a' + i - 1) << "x + " << (1 << k) << "*e"
               << (char)('a' + j - 1) << "x]" << endl;
          return;
        }
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  if (n == 1) {
    cout << 0;
    return 0;
  }
  a[1] = 1;
  rec(1, 1);
  cout << ans - 1 << endl;
  for (int i = 2; i <= ans; i++) {
    print(i);
  }
  return 0;
}
