Solve JSOI 2008 Starwar