added case given input 1 then 1