let m = Int(readLine()!)! var a = 2 for _ in 1..<128{ a = (a * 2) % m } print(a)