import std.stdio, std.string; void main(){ auto s = readln.strip; auto t = "…"; int x = 0; for(int i=1; i <= s.count("…"); i++){ if(s.indexOf(t) != -1){x = i;} t ~= "…"; } x.writeln; }