#include <bits/stdc++.h>
using namespace std;
int main() {
  int hero, atk1, heal, vill, atk2;
  cin >> hero >> atk1 >> heal;
  cin >> vill >> atk2;
  vector<string> ans;
  while (vill > 0) {
    if (vill - atk1 <= 0) {
      hero = hero - atk2;
      vill = vill - atk1;
      ans.push_back("STRIKE");
    } else if (hero - atk2 <= 0) {
      hero = hero + heal;
      hero = hero - atk2;
      ans.push_back("HEAL");
    } else {
      hero = hero - atk2;
      vill = vill - atk1;
      ans.push_back("STRIKE");
    }
  }
  cout << ans.size() << endl;
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << endl;
}
