Start 2025-03-12 00:00:00

蓝桥杯省赛训练计划

End 2025-05-19 17:09:31
Contest is over.
Now 2026-05-27 06:18:54

g. wolf

Description

从字符串s中选出4个字符从左到右组成单词"wolf"每个字符最多只能被选一次,请问该字符串最多只能组成几个这个单词。

Input

输入一行,字符串s

Output

一个整数,代表最多组成该单词的数量。

Examples

Input

wolwfolf

Output

2

Input

awboclffowolof

Output

2

Input

abcdfwol

Output

0

Hint

STEMA真题


Submit

Login

Signup
Time Limit 1 second
Memory Limit 128 MB
Submit