local s = io.stdin:read("*l") local t, l = s:gsub("%(^^%*%)", "") print(string.format("%d %d", l, (#t - 1) / #"(*^^)"))