$@-=$a-??,($a,$@)=/\d.* /?grep$&==($_=$a+$_*$@)%$',0..2*$':(0,print$@?"$a + $@k ":"no solutions ")for<>