i,j,m,n,k,l,sum:longint;
begin
read(s);
l:=length(s);
for i:=1 to l do
if s[i]='F' then
for j:=i+1 to l do
if s[j]='B' then
for k:=j+1 to l do
if s[k]='I' then inc(sum);
end;
write(sum);
end.
快速帮助 | 运行状态 | 反馈举报 | 关于我们 | 免责声明 | 浙ICP备11060257号 Processed in 0.0036 Second(s) Copyright (C) RQNOJ 2007-2019. All Rights Reserved.