#include <bits/stdc++.h>
using namespace std;
bool is_powertwo(long long n) {
  long long count = 0;
  while (n) {
    if ((n & 1) > 0) count++;
    n = n >> 1;
  }
  if (count == 1) return true;
  return false;
}
int main() {
  long long t;
  t = 1;
  while (t--) {
    long long h1, a1, c1;
    cin >> h1;
    cin >> a1;
    cin >> c1;
    long long h2, a2;
    cin >> h2;
    cin >> a2;
    string str = "";
    long long count = 0;
    while (h2 > 0) {
      count++;
      if (h1 > a2) {
        str += 's';
        h1 -= a2;
        h2 -= a1;
      } else if (h2 <= a1) {
        h2 -= a1;
        str += 's';
        h1 -= a2;
      } else {
        h1 -= a2;
        str += 'h';
        h1 += c1;
      }
    }
    cout << count << endl;
    for (long long i = 0; i < str.size(); i++) {
      if (str[i] == 's')
        cout << "STRIKE" << endl;
      else
        cout << "HEAL" << endl;
    }
  }
  return 0;
}
