#include <bits/stdc++.h>
using namespace std;
int r, d, x, vitri, day;
int main() {
  cin >> r >> d >> x;
  if ((x * 1.0 / (2 * d)) == trunc(x * 1.0 / (2 * d)))
    day = x / (2 * d);
  else
    day = x / (2 * d) + 1;
  int first = day * 2 * d - (2 * d) + 1;
  cout << day << " ";
  int xe = x - first + 1;
  if (xe * 1.0 / 2 == trunc(xe * 1.0 / 2))
    cout << xe / 2;
  else
    cout << xe / 2 + 1;
  cout << " ";
  if (x % 2 == 0)
    cout << "R";
  else
    cout << "L";
}
