};
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
- Random random = new Random();
int roadLength = in.nextInt();
int initialStones = in.nextInt();
+ long gameSeed = in.nextLong();
+ int gameSide = in.nextInt();
+ in.nextLine();
+ long mySecretSalt = 0x4242424242424242L;
+ Random random = new Random(gameSeed ^ gameSide ^ mySecretSalt);
while (true) {
int trollDistance = in.nextInt();