#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 20;
vector<bool> ans;
int main() {
  int a1, h1, c1;
  cin >> h1 >> a1 >> c1;
  int a2, h2;
  cin >> h2 >> a2;
  int i;
  for (i = 0;; i++) {
    if (h2 <= a1)
      h2 -= a1, ans.push_back(0);
    else if (h1 <= a2)
      h1 += c1, ans.push_back(1);
    else
      h2 -= a1, ans.push_back(0);
    if (h2 <= 0) {
      i++;
      break;
    }
    h1 -= a2;
  }
  cout << ans.size() << '\n';
  for (int j = 0; j < i; j++)
    if (ans[j])
      cout << "HEAL\n";
    else
      cout << "STRIKE\n";
}
