Begin read(n,a); for i:= 1 to 3 do begin summ := summ + n mod 10; summ := summ div 10; end; if summ mod a = 0 then write('кратно') else write('не кратно'); end.