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();
21 int trollDistance = in.nextInt();
22 int stones = in.nextInt();
23 int opponentStones = in.nextInt();
25 if (random.nextInt(30) == 0) {
26 System.out.println(random.nextInt(stones+1) + " " +
27 messages[random.nextInt(messages.length)]);
30 System.out.println(random.nextInt(stones+1));