import java.util.Scanner;class A{public static void main(String[] args){Scanner sc=new Scanner(System.in);int x=sc.nextInt();x=(x%2==0)?x/2:x;System.out.println(x);}}