Bash + coreutils, 3030 28 bytes
-2 bytes thanks to Digital Trauma
grepfold -o .|sort|uniq1|sort|uniq -u|tail -1
Bash + coreutils, 20 bytes
sort|uniq -u|tail -1
If input is given as a list of digits, one per line, we can skip the grepfold stage. That feels like cheating though.