from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    M = int(input())
    print(pow(2, 128, M))


main()