#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int l = k / (2 * m) + (k % (2 * m) != 0);
  int d = (k - 2 * m * (l - 1)) / 2 + ((k - 2 * m * (l - 1)) % 2 != 0);
  char c = (((k - 2 * m * (l - 1)) % 2 != 0) ? 'L' : 'R');
  cout << l << " " << d << " " << c << endl;
}
