Bob and Alice are often participating in various programming competitions. Like many competitive programmers, Alice and Bob have good and bad days. They noticed, that their lucky and unlucky days are repeating with some period. For example, for Alice
import java.io.*; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; /** * User: HYY * Date: 13-10-29 * Time: 下午9:57 * To change this template use File | Settings | File Templates. */ public class Server { public static f