my $str = <>; my @array = split (/ /, $str); my $sum; my $correct; for my $math(@array){ $sum += $math; } my @ten = (1..10); for my $ten(@ten){ $correct += $ten; } my $remainder = $correct - $sum; print "$remainder\n";