Var b:array[1..100] of integer; i, sum, a:integer; Begin read(a); for i:= 1 to 100 do begin b:= random(100); if b < a then sum:= sum + b; end; writeln(sum); End.