Case #1 27 Case #2 57 Case #3 58 Case #4 -1 Case #5 104 Case #6 4381981 Case #7 -1 Case #8 8882702 Case #9 10078253997 Case #10 11212103082