Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 757A : GOTTA CATCH EM' ALL!
- # Prerequisite : Implementation
- string=raw_input()
- list={}
- list['B']=0
- list['u']=0
- list['l']=0
- list['b']=0
- list['a']=0
- list['s']=0
- list['r']=0
- alphabets=['B','u','l','b','a','s','r']
- double=['u','a']
- for c in string:
- if c in alphabets:
- list[c]+=1
- for c in double:list[c]//=2
- print min(list.values())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement