#To Find the Bitwise OR of the array elements.

n=int(input())      #Enter the no of element
a=list(map(int,input().split()))  #Enter the n elements
print(a[0]|a[1])               #Print Bitwise OR of n numbers

29514287ba2d8e217c25ab0f591aeff11770fcb8
<mask token>

<mask token>
print(a[0] | a[1])

n = int(input())
a = list(map(int, input().split()))
print(a[0] | a[1])

#To Find the Bitwise OR of the array elements.

n=int(input())      #Enter the no of element
a=list(map(int,input().split()))  #Enter the n elements
print(a[0]|a[1])               #Print Bitwise OR of n numbers
