import std.stdio, std.conv, std.string, std.range, std.math, std.algorithm; void main() { auto N = readln.strip.to!int; auto A = readln.split.to!(int[]); A.uniq.map!(a => A.count(a)).count!"a==1".writeln; }