1000 a+b problem