solve problem 17, upload firstly