var c:char;a,i:comp;begin repeat a:=0;i:=0;repeat read(c);if c='*'then inc(a);inc(i)until i=451;writeln(a div 5)until 1=0end.