#d247. 数学
数学
Math
Problem Description
Given an integer , Professor Pang wants to divide the numbers into two groups, each group containing at least one number, such that the greatest common divisor of the sums of the two groups is as large as possible. Output the maximum possible greatest common divisor.
Note: the greatest common divisor is the largest among the common divisors of two or more integers.
Input Format
A single line containing one integer .
Output Format
Output one integer, the answer.
Sample Input
6
Sample Output
7
Constraints
For of the data, .
For of the data, .