program pil_12_16(input,output);

procedure WriteRev;
var
  c : char;
begin
  read(c);
  if c<>'.' then begin
    WriteRev;
    Write(c);
  end;
end;

begin
  WriteRev;
end.

