where is the inverse function of , is the largest integer that is less than or equal to , and is the smallest integer that is greater than or equal to .
Since the value could be very large, please output the value modulo .
输入格式
An integer described above.
输出格式
An integer denotes the value you have calculated modulo .