def solve(string):
    n, *a = map(int, string.split())
    a = ["{:060b}".format(_a) for _a in a]
    return str(0)


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))
