var a,a1,a2,sum:integer;
begin
readln(a);
sum:=0;
a1:=a mod 10;
a2:=a div 10;
sum:=a1+a2;
writeln(sum);
end.
var a,a1,a2,sum:integer;
begin
readln(a);
sum:=0;
a1:=a mod 10;
a2:=a div 10;
sum:=a1+a2;
writeln(sum);
end.