The first line contains N and K. (1≤N,K≤109)
The second line contains M, the number of buildings that carry a height cap. (0≤M≤min(N,500))
If M is at least 1, the third line contains X1,X2,…,XM and the fourth line contains T1,T2,…,TM, separated by spaces. (1≤Xi≤N, 1≤Ti≤109, Xi<Xi+1) If M is 0, the third and fourth lines are not given.