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