#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, m, k;
  cin >> n >> m >> k;
  char ans;
  if (k & 1)
    ans = 'L';
  else
    ans = 'R';
  long long var = 2 * n * m;
  long long temp = k;
  int table = 1;
  for (int i = 0; i < n; i++) {
    if (k > (2 * m)) {
      k -= (2 * m);
      table++;
      continue;
    }
    if (k <= (2 * m)) {
      if (ans == 'L') {
        int row = 1;
        while (k != 1) {
          k -= 2;
          row++;
        }
        cout << table << " " << row << " " << ans << endl;
      } else if (ans == 'R') {
        int row = 1;
        while (k - 2 != 0) {
          k -= 2;
          row++;
        }
        cout << table << " " << row << " " << ans << endl;
      }
      return;
    }
  }
}
int main() {
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
