#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, h, t;
  cin >> a >> b >> c;
  h = (c + 1) / 2;
  t = h % b;
  if (t == 0) t = b;
  cout << (h - 1) / b + 1 << ' ' << t << ' ';
  if (c % 2 == 0)
    cout << "R";
  else
    cout << "L";
}
