#include <bits/stdc++.h>
class PartialTeacher {
 private:
  int& n;
  std::string& order;
  std::vector<int> toffees;

 public:
  PartialTeacher(int& n, std::string& s) : n(n), order(s) {
    toffees.resize(n, 1);
  }
  void distribute();
};
void PartialTeacher::distribute() {
  int index = 0;
  for (auto ch : order) {
    if (ch == 'L') {
      if (toffees[index] <= toffees[index + 1]) {
        toffees[index] = toffees[index + 1] + 1;
      }
      index++;
    }
    if (ch == 'R') {
      if (toffees[index] >= toffees[index + 1]) {
        toffees[index + 1] = toffees[index] + 1;
      }
      index++;
    }
    if (ch == '=') {
      if (toffees[index] <= toffees[index + 1]) {
        toffees[index] = toffees[index + 1];
      } else {
        toffees[index + 1] = toffees[index];
      }
      ++index;
    }
  }
  std::reverse(order.begin(), order.end());
  for (auto ch : order) {
    if (ch == 'L') {
      if (toffees[index - 1] <= toffees[index]) {
        toffees[index - 1] = toffees[index] + 1;
      }
      index--;
    }
    if (ch == 'R') {
      if (toffees[index] <= toffees[index - 1]) {
        toffees[index - 1] = toffees[index] + 1;
      }
      index--;
    }
    if (ch == '=') {
      if (toffees[index] <= toffees[index - 1]) {
        toffees[index] = toffees[index - 1];
      } else {
        toffees[index - 1] = toffees[index];
      }
      --index;
    }
  }
  for (auto toffee : toffees) {
    std::cout << toffee << " ";
  }
}
int main() {
  int n;
  std::string s;
  std::cin >> n >> s;
  PartialTeacher teacher = PartialTeacher(n, s);
  teacher.distribute();
  return 0;
}
