H. A Big Project
time limit per test
1 second
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
3 5 2
1 2
6 3
4 3
2 5
5 4
Output
2
1 2
3 4
5 6