If your system's grep utility does not support the -o option, you could also do this entirely in the shell (with any shell that performs basic POSIX-required parameter expansions) using:
while read -r line
do printf '%s\n' "${line#${line%????}}"
done < file
which with your sample input file produces the output: