游客 Signup | Login
中文 | En

3583 - 线性链表的查找

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

输入一个正整数序列,遇负数时停止,建立一个线性链表存储读入的数据,然后从键盘读入一数据x,在该链表中查找有无比x大的数据,有则全部输出,没有则输出‘no found’

Input

Output

Examples

Input Format

1 2 3 4 5 -1
3

Output Format

4 5