def main(): n = int(input()) m = n while m % 2 == 0: m += 1 print(m) if __name__ == "__main__": main()