import sys

try:
	usr = open('user_out', 'r', encoding='utf-8')
	code = open('code', 'r', encoding='utf-8')
except Exception as e:
	print(0)
	print('评测机爆了啊啊啊啊啊啊啊啊啊啊!!!!!!!!!!',file=sys.stderr)
	sys.exit(0)

try:
	code = code.read()
except Exception as e:
	print(0)
	print('cannot read the code: ' + str(e), file = sys.stderr)
	sys.exit(0)

code = code.replace('\r\n', '\n')

if len(code) < 10:
	print(0)
	print('TOO Short',file=sys.stderr)
	sys.exit(0)

try:
	outcode = usr.read()
except Exception as e:
	print(0)
	print('cannot read the output: ' + str(e), file = sys.stderr)
	sys.exit(0)

outcode = outcode.replace('\r\n', '\n')

if outcode == code:
	print(100)
else:
	print(0)
	print('Wrong Answer',file=sys.stderr)
