#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int r = (k - 1) / (2 * m) + 1;
  int l = ((k - 1) % (2 * m)) / 2 + 1;
  cout << r << ' ' << l << ' ';
  if (k % 2 == 0)
    cout << 'R' << endl;
  else
    cout << 'L' << endl;
}
