#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y, z, i, j, k, m, n, p, q;
  bool l = 0, r = 0;
  cin >> n >> m >> k;
  if (k % 2 == 0) {
    p = k / 2;
    r = 1;
  } else {
    p = (k + 1) / 2;
    l = 1;
  }
  q = p % m;
  x = (q == 0) ? p / m : (p / m) + 1;
  y = (q == 0) ? m : p % m;
  cout << x << ' ' << y << ' ' << ((l == 1) ? 'L' : 'R');
}
