const Main = input => {
    //入力
    const lines = input.split("\n");
    const n = Number(lines[0]);
    const cities = [];
    for (i = 0; i < n; i++) {
        const tmp = lines[i + 1].split(" ")
        cities.push(tmp.map(x => Number(x)));
    }

    const answers=[];
    //計算
    for (k = 0; k < n; k++) {
        const tmp = cities.filter( 
            coor => (cities[k][0] - coor[0]) * (cities[k][1] - coor[1]) > 0 
            );
        console.log(tmp.length+1);
    }

    //出力
}
//*この行以降は編集しないでください（標準入出力から一度に読み込み、Mainを呼び出します）
Main(require("fs").readFileSync("/dev/stdin", "utf8"));