Problem3318--【Div3】真正的魔术

3318: 【Div3】真正的魔术

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description





Sample Input Copy

8 4 5
2 7
2 2
3 5
6 8
7 1

Sample Output Copy

6

HINT

Source/Category