function two(i: integer): boolean;
begin
two := (i mod 10 mod 2 = 0);
end;
function three(i: integer): boolean;
var
buf, k: integer;
begin
buf := i;
repeat
k := k + (buf mod 10);
buf := buf div 10;
until (buf = 0);
three := (k mod 3 = 0);
end;
function four(i: integer): boolean;
begin
four := (i mod 100 mod 4 = 0);
end;
function six(i: integer): boolean;
begin
six := (two(i) and (three(i)));
end;
function BooleanToString(i: boolean): string;
begin
if (i) then
BooleanToString := 'Да'
else
BooleanToString := 'Нет';
end;
var
i: integer;
begin
readln(i);
writeln('2: ', BooleanToString(two(i)));
writeln('3: ', BooleanToString(three(i)));
writeln('4: ', BooleanToString(four(i)));
writeln('6: ', BooleanToString(six(i)));
end.