#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, r = 0, d = 0;
  char s;
  cin >> a >> b >> c;
  b = b * 2;
  if (c % 2 == 0)
    s = 'R';
  else
    s = 'L';
  if (c % b != 0)
    r++;
  else
    d = b / 2;
  r += c / b;
  a = c % b;
  if (a % 2 != 0) d++;
  cout << r << " " << a / 2 + d << " " << s;
  return 0;
}
