using System;
using System.Collections.Generic;
using CompLib.Util;

public class Program
{
    public void Solve()
    {
        var sc = new Scanner();
        int n = sc.NextInt();
        int m = sc.NextInt();
        int k = sc.NextInt();

        var qf = new QuickFind(n);

        int[] friend = new int[n];

        for (int i = 0; i < m; i++)
        {
            int a = sc.NextInt() - 1;
            int b = sc.NextInt() - 1;
            friend[a]++;
            friend[b]++;
            qf.Unite(a, b);
        }

        int[] ans = new int[n];
        for (int i = 0; i < n; i++)
        {
            ans[i] = qf.GetSize(i) - 1 - friend[i];
        }

        for (int i = 0; i < k; i++)
        {
            int c = sc.NextInt() - 1;
            int d = sc.NextInt() - 1;
            if (qf.Same(c, d))
            {
                ans[c]--;
                ans[d]--;
            }
        }

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

    public static void Main(string[] args) => new Program().Solve();
}

class QuickFind
{
    // iがいるグループの代表値 _num[i]
    private readonly int[] _num;

    // グループiにある値 
    private readonly List<int>[] _group;

    public QuickFind(int v)
    {
        _num = new int[v];
        _group = new List<int>[v];
        for (int i = 0; i < v; i++)
        {
            _num[i] = i;
            _group[i] = new List<int>();
            _group[i].Add(i);
        }
    }

    public bool Same(int a, int b) => _num[a] == _num[b];

    public bool Unite(int a, int b)
    {
        int numA = _num[a];
        int numB = _num[b];
        if (numA == numB) return false;

        if (_group[numA].Count > _group[numB].Count)
        {
            foreach (int i in _group[numB])
            {
                _group[numA].Add(i);
                _num[i] = numA;
            }
        }
        else
        {
            foreach (int i in _group[numA])
            {
                _group[numB].Add(i);
                _num[i] = numB;
            }
        }

        return true;
    }

    public int GetSize(int i) => _group[_num[i]].Count;
}

namespace CompLib.Util
{
    using System;
    using System.Linq;

    class Scanner
    {
        private string[] _line;
        private int _index;
        private const char Separator = ' ';

        public Scanner()
        {
            _line = new string[0];
            _index = 0;
        }

        public string Next()
        {
            while (_index >= _line.Length)
            {
                _line = Console.ReadLine().Split(Separator);
                _index = 0;
            }

            return _line[_index++];
        }

        public int NextInt() => int.Parse(Next());
        public long NextLong() => long.Parse(Next());
        public double NextDouble() => double.Parse(Next());
        public decimal NextDecimal() => decimal.Parse(Next());
        public char NextChar() => Next()[0];
        public char[] NextCharArray() => Next().ToCharArray();

        public string[] Array()
        {
            _line = Console.ReadLine().Split(' ');
            _index = _line.Length;
            return _line;
        }

        public int[] IntArray() => Array().Select(int.Parse).ToArray();
        public long[] LongArray() => Array().Select(long.Parse).ToArray();
        public double[] DoubleArray() => Array().Select(double.Parse).ToArray();
        public decimal[] DecimalArray() => Array().Select(decimal.Parse).ToArray();
    }
}

Measured memory_bytes: 31948