read -dx {A..G} Y=E-G ${D/$F}&&a[Y>0?Y:-Y]= eval a[{X=E+G-1,D+F-X,{F+,D-}Y+{A..C}}]= printf ${!a[@]}