#include <bits/stdc++.h>
using namespace std;
int main() {
  double n, m, k;
  cin >> n >> m >> k;
  int a, b, ans, w;
  w = k;
  a = ceil(k / (2 * m));
  cout << a << " ";
  b = k;
  a--;
  a *= (2 * m);
  b -= a;
  n = b;
  cout << ceil(n / 2) << " ";
  if (w % 2 == 0)
    cout << "R";
  else
    cout << "L";
}
