abi=raw_input()
if abi.count('(')==abi.count(')'):print("yes")
else:print("no")

652bbd6377d95a94df2d0b7412df100edda27d3f
<mask token>

<mask token>
if abi.count('(') == abi.count(')'):
    print('yes')
else:
    print('no')

abi = raw_input()
if abi.count('(') == abi.count(')'):
    print('yes')
else:
    print('no')

abi=raw_input()
if abi.count('(')==abi.count(')'):print("yes")
else:print("no")
