#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int l, d, k;
  cin >> l >> d >> k;
  int lane = (k % (2 * d)) ? (k / (2 * d)) + 1 : (k / (2 * d));
  int desk = ((k + 1) / 2) % d ? ((k + 1) / 2) % d : d;
  cout << lane << ' ' << desk << ' ';
  cout << (k % 2 ? 'L' : 'R') << endl;
  return 0;
}
