#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  while (cin >> n >> m >> k) {
    int sum = k / (2 * m), a;
    if (k % (2 * m) == 0) sum--;
    int num = sum + 1;
    int anx = k - sum * (2 * m);
    if (anx % 2 == 0)
      a = anx / 2;
    else
      a = anx / 2 + 1;
    if (k % 2 == 0)
      cout << num << " " << a << " "
           << "R" << endl;
    else
      cout << num << " " << a << " "
           << "L" << endl;
  }
  return 0;
}
