#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  char pos = k % 2 ? 'L' : 'R';
  int cnt = m * 2;
  int lane = 1 + (k - 1) / cnt;
  int row = 1;
  k -= lane * cnt - cnt;
  for (; k > row * 2; row++)
    ;
  swap(row, lane);
  cout << row << ' ' << lane << ' ' << pos << endl;
}
