#我投机取巧了 import sys data= sys.stdin.readlines() line=data[0].strip("\n") line=line.replace("{","(") line=line.replace("[","(") line=line.replace("}",")") line=line.replace("]",")") # print(line) print(int(eval(line)))
#我投机取巧了 import sys data= sys.stdin.readlines() line=data[0].strip("\n") line=line.replace("{","(") line=line.replace("[","(") line=line.replace("}",")") line=line.replace("]",")") # print(line) print(int(eval(line)))