n,s = int(input()),str(input()) o = [] siz = int(n/10) while s: o.append(s[:siz]) s = s[siz:] print(o.count("T"*siz))
1 2 3 4 5 6 7 | n,s = int(input()),str(input()) o = [] siz = int(n/10) while s: o.append(s[:siz]) s = s[siz:] print(o.count("T"*siz)) |
n,s = int(input()),str(input()) o = [] siz = int(n/10) while s: o.append(s[:siz]) s = s[siz:] print(o.count("T"*siz))
1 2 3 4 5 6 7 | n,s = int(input()),str(input()) o = [] siz = int(n/10) while s: o.append(s[:siz]) s = s[siz:] print(o.count("T"*siz)) |