main=getLine>>=(0#).words n+1#("=":x)=print n>>n#x n#(_:x)=(n+1)#x