#include <bits/stdc++.h>
using namespace std;
int ans, a1, b1, c1, a2, b2, a1_1, a2_1;
int main() {
  cin >> a1 >> b1 >> c1 >> a2 >> b2;
  a1_1 = a1;
  a2_1 = a2;
  while (a1 > 0 && a2 > 0) {
    if (a2 <= b1)
      a2 -= b1;
    else if (b2 >= a1)
      a1 += c1;
    else
      a2 -= b1;
    if (a2 > 0) a1 -= b2;
    ans++;
  }
  cout << ans << endl;
  a1 = a1_1;
  a2 = a2_1;
  while (a1 > 0 && a2 > 0) {
    if (a2 <= b1)
      a2 -= b1, cout << "STRIKE\n";
    else if (b2 >= a1)
      cout << "HEAL\n", a1 += c1;
    else
      cout << "STRIKE\n", a2 -= b1;
    if (a2 > 0) a1 -= b2;
  }
  return 0;
}
