#include <bits/stdc++.h>
using namespace std;
int main() {
  int lines, desk, numero;
  cin >> lines >> desk >> numero;
  int troca;
  int i = 0, j = 1;
  int x = 1, y = 1;
  while (i < (lines * desk) + (lines * desk)) {
    troca = i + 1;
    if (troca == numero) {
      cout << x << " " << y << " "
           << "L" << endl;
      break;
    }
    troca = j + 1;
    if (troca == numero) {
      cout << x << " " << y << " "
           << "R" << endl;
      break;
    }
    y++;
    if (y > desk) {
      y = 1;
      x++;
    }
    i += 2;
    j += 2;
  }
  return 0;
}
