x = y = 0 for i in input(): y = [0 ,y+1][i == '…'] x = max(x, y) print(x)