You have written A, B = input().split, instead it should be A, B = input().split(). See that split() is a function, so you have to call it.
A, B = input().split
A, B = input().split()