11607: P563 2 6 7

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:0

Description

完成P563页的2,6,7题。

客户端的代码可以是如下顺序,

5个Insert操作,

调用print操作,

2个replace操作,

调用print操作,


Input

52

66

77

77

99//5个输入的数据;

62 69

77 79//两组替换的数据


Output

52 66 77 99//第一次的输出结果

52 66 79 99//第二次的输出结果

Sample Input Copy

22
35
68
99
12
35 39
15 18

Sample Output Copy

22 35 68 99 12
22 39 68 99 12