#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  long int k, col = 0;
  cin >> n >> m >> k;
  vector<int> desk;
  for (int i = 1; i < n + 1; ++i) {
    desk.push_back(m * i);
  }
  for (int i = 1; i < desk.size() + 1; ++i) {
    if (k <= desk[i - 1] * 2) {
      cout << i << " ";
      if (k % 2 == 0) {
        if (i > 1)
          cout << (k - desk[i - 2] * 2) / 2 << " R";
        else
          cout << k / 2 << " R";
      } else {
        if (i > 1)
          cout << ((k + 1) - desk[i - 2] * 2) / 2 << " L";
        else
          cout << (k + 1) / 2 << " L";
      }
      break;
    }
  }
  return 0;
}
