$sStr = '01,02,02а,02б,02г,03,04,05б'
$sStr = StringReplace($sStr,"а",".1")
$sStr = StringReplace($sStr,"б",".2")
$sStr = StringReplace($sStr,"в",".3")
$sStr = StringReplace($sStr,"г",".4")
$sStr = StringReplace($sStr,"д",".5")
$aStr = StringSplit($sStr, ',')
$sMissed=""
$iGrupaStr=$aStr[$aStr[0]]
For $i=$aStr[0] To 1 Step -1
$fStr=Number($aStr[$i])
if $iGrupaStr<$fStr Then ContinueLoop
$iGrupaStr=Int($fStr)
While $fStr >= $iGrupaStr
$sMissed = $fStr & ',' & $sMissed
$fStr = $fStr - 0.1
WEnd
Next
$sMissed = StringReplace($sMissed,".1","а")
$sMissed = StringReplace($sMissed,".2","б")
$sMissed = StringReplace($sMissed,".3","в")
$sMissed = StringReplace($sMissed,".4","г")
$sMissed = StringReplace($sMissed,".5","д")
ConsoleWrite(StringTrimRight($sMissed, 1) & @LF)