Program Zif_6_30(input,outut);
var c:char;
    k,p,k1:integer;
begin
     read(k);k1:=0;
     if k<0 then begin write('-');k:=abs(k) end;
     while k<>0 do
     begin
          k1:=k1*10+k mod 10;
          k:=k div 10
     end;
     while k1<>0 do
     begin
          p:=k1 mod 10;k1:=k1 div 10;
          c:=chr(p+ord('0'));
          write(c)
     end;
end.