"use strict";
var input=require("fs").readFileSync("/dev/stdin","utf8");
var cin=input.split(/ |\n/),cid=0;
function next(a){return a?cin[cid++]:+cin[cid++];}
function nexts(n,a){return a?cin.slice(cid,cid+=n):cin.slice(cid,cid+=n).map(a=>+a);}
function nextm(h,w,a){var r=[],i=0;if(a)for(;i<h;i++)r.push(cin.slice(cid,cid+=w));else for(;i<h;i++)r.push(cin.slice(cid,cid+=w).map(a=>+a));return r;}
function xArray(v){var a=arguments,l=a.length,r="Array(a["+--l+"]).fill().map(x=>{return "+v+";})";while(--l)r="Array(a["+l+"]).fill().map(x=>"+r+")";return eval(r);}

function unionFind(n){this.a=Array(n+1).fill(-1);}
unionFind.prototype={
  root:function(i){return this.a[i]<0?i:this.a[i]=this.root(this.a[i]);},
  same:function(x,y){return this.root(x)===this.root(y);},
  unite:function(x,y){x=this.root(x);y=this.root(y);if(x===y)return 1;if(this.a[y]<=this.a[x])this.a[y]+=this.a[x],this.a[x]=y;else this.a[x]+=this.a[y],this.a[y]=x;},
  size:function(i){return -this.a[this.root(i)];},
}

var myOut = main();
if(myOut !== undefined)console.log(myOut);

function main(){
  var n = next(), m = next(), k = next();
  var uf = new unionFind(n);
  var map = xArray("[]",n);
  for(var i = 0; i < m; i++){
    var a = next()-1, b = next()-1;
    uf.unite(a,b);
    map[a].push(b);
    map[b].push(a);
  }
  for(var i = 0; i < k; i++){
    var c = next()-1, d = next()-1;
    map[c].push(d);
    map[d].push(c);
  }
  var ans = [];
  for(var i = 0; i < n; i++){
    var t = uf.size(i)-1;
    for(var j = 0; j < map[i].length; j++){
      if(uf.same(i,map[i][j]))t--;
    }
    ans.push(t);
  }
  return ans.join(" ");
}