atcoder#ARC110A. [ARC110A] Redundant Redundancy

[ARC110A] Redundant Redundancy

Score : 300300 points

Problem Statement

We have an integer NN.

Print an integer xx between NN and 101310^{13} (inclusive) such that, for every integer yy between 22 and NN (inclusive), the remainder when xx is divided by yy is 11.

Under the constraints of this problem, there is always at least one such integer xx.

Constraints

  • All values in input are integers.
  • 2N302 \leq N \leq 30

Input

Input is given from Standard Input in the following format:

NN

Output

Print an integer xx between NN and 101310^{13} (inclusive) such that, for every integer yy between 22 and NN (inclusive), the remainder when xx is divided by yy is 11.

If there are multiple such integers, any of them will be accepted.

3
7

The remainder when 77 is divided by 22 is 11, and the remainder when 77 is divided by 33 is 11, too.

77 is an integer between 33 and 101310^{13}, so this is a desirable output.

10
39916801