#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d, e, f, g, h, i;
  cin >> a >> b >> c;
  d = c / (b * 2);
  if (c % (b * 2) > 0) d = d + 1;
  cout << d << " ";
  e = c % (b * 2);
  if (e == 0)
    cout << b << " R";
  else {
    if (e % 2 == 1)
      cout << e / 2 + 1 << " L";
    else
      cout << e / 2 << " R";
  }
}
