#P1851. 好朋友

好朋友

Description

Given a serial number ss, find the first pair of "Very Good Friends" such that the first serial number is not less than ss.

Input Format

A single line containing one integer ss, the given lower bound of the serial number.

Output Format

Output one line with two integers aa and bb.

aa denotes the first student with a serial number not less than ss who has a "Very Good Friend", and bb is the "Very Good Friend" of aa. (Note: b<sb<s is allowed.)

206

220 284

Hint

Constraints

  • For 100%100\% of the testdata, it is guaranteed that 6s1.8×1046\le s\le1.8\times10^4.

Translated by ChatGPT 5