import java.util.Scanner; public class Main_yukicoder276 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); if (n == 1) { System.out.println("1"); } else if (n % 2 == 1) { System.out.println(n); } else { System.out.println(n / 2); } sc.close(); } }