P2926 [USACO08DEC] Patting Heads S
Description
It's Bessie's birthday and time for party games! Bessie has instructed the N (1
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.
Explanation/Hint
The 5 cows are given the numbers 2, 1, 2, 3, and 4, respectively.
The first cow pats the second and third cows; the second cows pats no cows; etc.