added solution to inputnum as 1