import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.range;
import std.file;

void main(string[] args)
{
    auto s = map!(to!int)(readln.strip.split);
    auto d = s[1] * 2;
    int n = 1;
    while(n <= s[0])
    {
        auto des = d * n;
        if (des >= s[2])
            break;
        n++;
    }

    auto p = (n -1) * s[1] * 2;
    if (s[2] % 2 == 0)
    {
        auto m = (s[2] - p) / 2;
        writeln(n, " ", m, " R");
    }
    else
    {
        auto m = ((s[2] + 1) - p) / 2;
        writeln(n, " ", m, " L");
    }

}