using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace abc157_d
{
  class Program
  {
    static void Main(string[] args)
    {
      var N = CIn.ReadInt();
      var M = CIn.ReadInt();
      var K = CIn.ReadInt();

      var f = new int[N];
      var b = new HashSet<int>[N];

      for (int i = 0; i < N; i++)
      {
        b[i] = new HashSet<int>();
      }

      var uf = new UnionFind(N);

      for (int i = 0; i < M; i++)
      {
        var A = CIn.ReadInt() - 1;
        var B = CIn.ReadInt() - 1;

        f[A]++;
        f[B]++;

        uf.Unite(A, B);
      }

      for (int i = 0; i < K; i++)
      {
        var C = CIn.ReadInt() - 1;
        var D = CIn.ReadInt() - 1;

        b[C].Add(D);
        b[D].Add(C);
      }

      var ans = Enumerable.Range(0, N).Select(x => uf.GetSize(x) - 1 - f[x] - b[x].Count(y => uf.IsSame(x, y)));

      Console.WriteLine(String.Join(" ", ans));
    }
  }

  class UnionFind
  {
    private readonly int[] parent;
    private readonly int[] size;

    public UnionFind(int n)
    {
      parent = Enumerable.Range(0, n).ToArray();
      size = Enumerable.Repeat(1, n).ToArray();
    }

    public int GetRoot(int a)
    {
      if (parent[a] == a) return a;
      return parent[a] = GetRoot(parent[a]);
    }

    public void Unite(int a, int b)
    {
      var aRoot = GetRoot(a);
      var bRoot = GetRoot(b);

      if (aRoot == bRoot) return;

      if (size[a] >= size[b])
      {
        size[aRoot] += size[bRoot];
        parent[bRoot] = aRoot;
      }
      else
      {
        size[bRoot] += size[aRoot];
        parent[aRoot] = bRoot;
      }
    }

    public bool IsSame(int a, int b)
    {
      return GetRoot(a) == GetRoot(b);
    }

    public int GetSize(int a)
    {
      return size[GetRoot(a)];
    }
  }

  static class CIn
  {
    private static readonly Queue<string> fieldBuffer = new Queue<string>();

    public static string Read()
    {
      if (fieldBuffer.Count == 0)
      {
        foreach (var field in Console.ReadLine().Split())
        {
          fieldBuffer.Enqueue(field);
        }
      }
      return fieldBuffer.Dequeue();
    }

    public static int ReadInt() => int.Parse(Read());
    public static long ReadLong() => long.Parse(Read());
    public static double ReadDouble() => double.Parse(Read());

    public static string[] ReadStringArray(int n)
    {
      var array = new string[n];
      for (var i = 0; i < n; i++)
      {
        array[i] = Read();
      }
      return array;
    }

    public static int[] ReadIntArray(int n)
    {
      var array = new int[n];
      for (var i = 0; i < n; i++)
      {
        array[i] = ReadInt();
      }
      return array;
    }

    public static long[] ReadLongArray(int n)
    {
      var array = new long[n];
      for (var i = 0; i < n; i++)
      {
        array[i] = ReadLong();
      }
      return array;
    }

    public static double[] ReadDoubleArray(int n)
    {
      var array = new double[n];
      for (var i = 0; i < n; i++)
      {
        array[i] = ReadDouble();
      }
      return array;
    }

    public static char[,] ReadCharMatrix(int h, int w)
    {
      var array = new char[h, w];
      for (var i = 0; i < h; i++)
      {
        var l = Console.ReadLine().ToCharArray();
        for (var j = 0; j < w; j++)
        {
          array[i, j] = l[j];
        }
      }
      return array;
    }
  }
}


Measured memory_bytes: 44172