Program Pn;
var
a:string; b:byte;
procedure test(a:string; var b:byte);
var i:byte;
begin
b:=0;
for i:=1 to length(a)-1 do
begin
if (a[i]='s') and (a[i+1]='o') and (a[i+2]='l') then inc(b);
end;
Writeln('Sunt ',b,' silabe "sol" ');
end;
begin
Writeln('Dati sirul');
readln(a);
test(a,b);
readln;
end.