@amin2783
The numbers are in the same line not in separate lines.
try using,
a, b = map(int, input().split())
instead of
a = int(input())
b = int(input())
@amin2783
The numbers are in the same line not in separate lines.
try using,
a, b = map(int, input().split())
instead of
a = int(input())
b = int(input())