div
题号:NC17402
时间限制:C/C++/Rust/Pascal 3秒,其他语言6秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

We define a number n is good if and only if there exists x ∈ [n2+1,n2+2n] satisfy x|n4
Give a positive number m , you need to find the smallest good number no less than m

输入描述:

The first line has a positive integer m

输出描述:

Output the smallest good number no less than m
示例1

输入

复制
4

输出

复制
6

备注:

1≤ m≤ 101000