#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2;
  int move_counter = 0;
  vector<char> move;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  while (h2 > 0) {
    if (h2 - a1 <= 0) {
      move.push_back('S');
      ++move_counter;
      break;
    } else {
      if (h1 - a2 <= 0) {
        h1 += c1;
        move.push_back('H');
        ++move_counter;
      } else {
        h2 -= a1;
        move.push_back('S');
        ++move_counter;
      }
      h1 -= a2;
    }
  }
  cout << move_counter << '\n';
  for (const auto it : move) {
    if (it == 'H')
      cout << "HEAL" << '\n';
    else
      cout << "STRIKE" << '\n';
  }
}
