#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, m, k;
  cin >> n >> m >> k;
  long long p = (k - 1) / 2;
  long long lane = (p / m) + 1;
  long long desk = p % m + 1;
  char side;
  if (k % 2)
    side = 'L';
  else
    side = 'R';
  cout << lane << " " << desk << " " << side << endl;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long testcases = 1;
  while (testcases--) {
    solve();
  }
  return 0;
}
