Var
a,b,c,d,x,y:byte;
Begin
Write('a = ');ReadLn(a);
Write('b = ');ReadLn(b);
Write('c = ');ReadLn(c);
Write('d = ');ReadLn(d);
Write('x = ');ReadLn(x);
Write('y = ');ReadLn(y);
WriteLn((a+d)*100+(b+x)*10+c+y);
End.
Var
A,B,C:integer;
Begin
Write('A = ');ReadLn(A);
C:=A;
While C<>0 do
Begin
B:=B*10+(C mod 10);
C:=C div 10;
End;
if A=B then WriteLn(A - ' палиндром')
else WriteLn(A,' не является палиндромом')
End.