get first characters of expansion parameter of find command
Assuming that all your files are in the same directory and the filenames are reasonable sane, something like

 find . -maxdepth 1 -type f -name '*png' |
     while read line; do
         echo mv "$line" "path/${line:2:3}.jpg/"
     done


Run the command first as written (including the echo) to check whether the result makes sense. Then remove the echo and rerun.