1 import java.util.Random;
2 import java.util.Scanner;
4 public class PlayerRand {
5 private final static String[] messages = {
6 "meta⁵ @YannT ∷ (a → b) → f1 (f2 (f3 a)) → f1 (f2 (f3 b))",
7 "By the power of Grayskull!",
12 public static void main(String[] args) {
13 Scanner in = new Scanner(System.in);
15 int roadLength = in.nextInt();
16 int initialStones = in.nextInt();
17 long gameSeed = in.nextLong();
18 int gameSide = in.nextInt();
20 long mySecretSalt = 0x4242424242424242L;
21 Random random = new Random(gameSeed ^ gameSide ^ mySecretSalt);
24 int trollDistance = in.nextInt();
25 int stones = in.nextInt();
26 int opponentStones = in.nextInt();
28 if (random.nextInt(30) == 0) {
29 System.out.println(random.nextInt(stones+1) + " " +
30 messages[random.nextInt(messages.length)]);
33 System.out.println(random.nextInt(stones+1));