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