#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, s = 0, k2 = 0, k1 = 0, z;
  cin >> n >> m >> k;
  z = k % 2;
  while (true) {
    if (s + 2 * m >= k) {
      goto v;
    } else {
      s = s + 2 * m;
      k2++;
    }
  }
v:;
  cout << k2 + 1 << " ";
  while (true) {
    if (s >= (k - 2))
      goto z;
    else {
      s = s + 2;
      k1++;
    }
  }
z:;
  cout << k1 + 1 << " ";
  if (z == 0)
    cout << "R";
  else
    cout << "L";
}
