#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  int p, q;
  while (cin >> a >> b >> c >> p >> q) {
    int cnt = 0;
    int arr[10005];
    while (p > 0) {
      if (p <= b) {
        arr[cnt++] = 0;
        break;
      } else if (a <= q) {
        arr[cnt++] = 1;
        a += c;
      } else {
        p -= b;
        arr[cnt++] = 0;
      }
      a -= q;
    }
    cout << cnt << endl;
    for (int i = 0; i < cnt; i++) {
      if (arr[i] == 1) {
        cout << "HEAL" << endl;
      } else
        cout << "STRIKE" << endl;
    }
  }
}
