SP3591 PATHEADS - Patting Heads
Description
It's Bessie's birthday and time for party games! Bessie has instructed the N (1
Each cow i then draws a number A $ _{i} $ (1
The cows would like you to help them determine, for each cow, the number of other cows she should pat.
Input Format
- Line 1: A single integer: N.
- Lines 2..N+1: Line i+1 contains a single integer: A $ _{i} $ .
Output Format
- Lines 1..N: On line i, print a single integer that is the number of other cows patted by cow i.