{-------------------------------
 Opredelit chislo,poluchennoe
 vipisivaniem v obratnom
 poradke cifr zadannogo
 trexznachnogo chisla.
 -------------------------------
  # Max Tkachenko # Group 112 #
 -------------------------------
}

Program task_3_28___K(input,output);

 var
  a, a1,a2, h : integer;
  i : integer;


 begin
  writeln('Input A:');
   readln(a);

    a1 := (a mod 10);
    a2 := a mod 100;

    a := (a1 * 100) +
         (a2 - a1) +      {vichitat a1 bolee ekonomi4no,4em   (DIV 10)*10}
         (a div 100);

  writeln(a);
  readln;
 end.