I would like to take a long input and print the maximum pairwise product between them but i'm getting 0 as my output. e.g. would like to take 10^5 and 9^4 as my input and print maximum pairwise product 9^9 but i'm getting 0 as my answer. So how to solve this problem of taking long input in python3?
n = len(numbers)
largest = 0
second = 0
for i in range(0,n):
if numbers[i] > largest:
second = largest
largest = numbers[i]
max_product = largest * second
return max_product
if __name__ == '__main__':
input_numbers = []
input_n = int(input())
input_numbers = [int(x) for x in input().split()]
print(max_pairwise_product(input_numbers))