#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, k;
  cin >> n >> m >> k;
  char ch;
  if (k % 2)
    ch = 'L';
  else
    ch = 'R';
  m *= 2;
  long long l = k / m;
  if (k % m) l++;
  long long d = k % m;
  if (d % 2) d++;
  if (d == 0)
    d = m / 2;
  else
    d /= 2;
  cout << l << " " << d << " " << ch << endl;
}
