# https://open.kattis.com/problems/yinyangstones
# 1s
# 1.7 Easy

# ChatGPT4: 39 chars. Not committed.
# x=gets
# p x.count("W")==x.count("B")?1:0

# 41 chars Top 10 place 2 (Thomas Feld has 32 chars!)
# x=gets
# p (x.count("W")==x.count("B"))?1:0
                               
                               
# 47 chars Top 10 place 5
# x=gets.chars
# p (x.count("W")==x.count("B"))?1:0


# 49 chars
# x=gets.chars
# p (x.count("W")==x.count("B"))&&1||0

# 53 chars
# x=gets
# p (x.scan(/W/).length==x.scan(/B/).length)?1:0
