summaryrefslogtreecommitdiffstats
path: root/1/1.py
blob: 7c709852ce58c0ed82874719263a1d7ff983756d (plain)
1
print(sum({'(': 1, ')': -1}[c] for c in open('input').read().rstrip('\n')))