import numpy as np
N,M,K = map(int,input().split())
answer_list = [0]*N
frend_list = [[0] * N for i in range(N)]
flag_list = [0]*N
for i in range(M):
    num_list= list(map(int,input().split()))
    frend_list[num_list[0]-1][num_list[1]-1] = 1
    frend_list[num_list[1]-1][num_list[0]-1] = 1

for i in range(K):
    num_list= list(map(int,input().split()))
    frend_list[num_list[0]-1][num_list[1]-1] = 3
    frend_list[num_list[1]-1][num_list[0]-1] = 3
    
    
for i in range(len(answer_list)):
    for n in range(len(frend_list[i])):
        if (frend_list[i][n] == 0) & (i != n):
            flag_list = (np.array(frend_list[n])+np.array(frend_list[i]))
            flag_list = flag_list.tolist()
            for g in flag_list:
                if g == 2:
                    answer_list[i] += 1
print(answer_list)