#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, r;
  cin >> n >> m >> r;
  int x = r / (2 * m);
  if (r % (2 * m) != 0) {
    x += 1;
  }
  int y = r % (2 * m);
  if (y == 0) y += (2 * m);
  bool rit = 1;
  int z = y / 2;
  if (y % 2 != 0) {
    z += 1;
    rit = 0;
  }
  cout << x << " " << z << " ";
  if (rit)
    cout << "R" << endl;
  else
    cout << "L" << endl;
}
