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