small integer solution