# coding: utf-8
# Author:Code
x, a = map(int, raw_input().split())
if x < a:
    print 0
else:
    print 10 x, a = map(int, raw_input().split()) x map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split a if x < a:
    print 0
else:
    print 10 x < a x a print print x, a = map(int, raw_input().split()) map(int, raw_input().split()) x a = map(int, raw_input().split()) map(int, raw_input().split()) a
# coding: utf-8
# Author:Code
x, a = map(int, raw_input().split())
if x < a:
    print 0
else:
    print 10
