Bug fixed, remove sc.next() in Main