1 import java.util.Random;
2 import java.util.Scanner;
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);
14 Random random = new Random();
16 int roadLength = in.nextInt();
17 int initialStones = in.nextInt();
18 in.nextLong(); // seed
23 int trollDistance = in.nextInt();
24 int stones = in.nextInt();
25 int opponentStones = in.nextInt();
27 if (random.nextInt(30) == 0) {
28 System.out.println(random.nextInt(stones+1) + " " +
29 messages[random.nextInt(messages.length)]);
32 System.out.println(random.nextInt(stones+1));