Problem Description

Given n numbers, print bitwise OR of them.

Input Format

First n. Next line n ints.

Output Format

One integer.

Sample Test Case

Input:
4 1 2 4 8
Output:
15

Constraints

n

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next