# use strict; # use warnings; <>; chomp(my $s = <>); my @As = split(/\s/, $s); my %d; foreach (@As) { $d{$_} = 0; } foreach (@As) { $d{$_}++; } my $c = 0; foreach (values(%d)) { $c++ if $_ == 1; } print($c, "\n");