print(2**128%(int(input())))