#P1851. 好朋友
好朋友
Description
Given a serial number , find the first pair of "Very Good Friends" such that the first serial number is not less than .
Input Format
A single line containing one integer , the given lower bound of the serial number.
Output Format
Output one line with two integers and .
denotes the first student with a serial number not less than who has a "Very Good Friend", and is the "Very Good Friend" of . (Note: is allowed.)
206
220 284
Hint
Constraints
- For of the testdata, it is guaranteed that .
Translated by ChatGPT 5
京公网安备 11011102002149号