f=$(or $(word 30,$9),$(call f,$(subst $2$3,,$1),$4,$5,$6,$7,$8,$(10),$3,$9 $(if $1,0,1),$2)) $(foreach a,$(strip $(STDIN)),$(info $(call f,$a,A,a,B,b,C,c,D,,d)))