#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int a1, a2, h1, h2, c1, moves = 0;
  vector<string> v;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  while (h2 > 0) {
    moves++;
    if (h1 <= a2 && h2 > a1) {
      v.push_back("HEAL");
      h1 += c1;
    } else {
      v.push_back("STRIKE");
      h2 -= a1;
    }
    h1 -= a2;
  }
  cout << moves << "\n";
  for (int i = 0; i < moves; i++) cout << v[i] << "\n";
}
