import sys
def adding_will_overflow(x: int, y: int) -> bool:
return ((x > 0) and (y > sys.maxsize - x)) or ((x < 0) and (y < -sys.maxsize - 1 - x))
x, y = 39839299, 15472783642
print("true" if adding_will_overflow(x, y) else "false")
x, y = 1338839299, 1872783642
print("true" if adding_will_overflow(x, y) else "false")
'''
run:
Is palindrome: True
Is palindrome: False
'''