program fanzhuan;
var
shu,wei,i,j:longint;
a:array[1..100] of longint;
begin
assign(input,'reverse.in');
assign(output,'reverse.out');
reset(input);
rewrite(output);
readln(shu);
if shu<0 then
begin
write('-');
shu:=abs(shu);
end;
wei:=0;
while shu<>0 do
begin
inc(wei);
a[wei]:=shu mod 10;
shu:=shu div 10;
end;
for i:=1 to wei do
if a[i]<>0 then
break;
for j:=i to wei do
write(a[j]);
close(output);
close(input);
end.