program laba42;
uses
crt;
var
a,b,c:integer;
procedure ChangeColor(a:integer);
begin
if (a mod 4=0) and (a mod 10 =0) then
TextColor(1)
else
if a mod 4 =0 then
TextColor(4)
else
if (a mod 4<>0) and (a mod 10<>0) then
TextColor(14)
else
TextColor(0);
end;
begin
TextBackGround(10);
clrscr;
writeln('Enter 3 num.');
ReadLn(a,b,c);
clrscr;
GotoXY(38,12);
ChangeColor(a);
write(a,' ');
ChangeColor(b);
write(b,' ');
ChangeColor(c);
write(c)
end.