a = int(raw_input())
b = int(raw_input())
a-b