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