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);
14 Random random = new Random();
16 int roadLength = in.nextInt();
17 int initialStones = in.nextInt();
20 int trollDistance = in.nextInt();
21 int stones = in.nextInt();
22 int opponentStones = in.nextInt();
24 if (random.nextInt(30) == 0) {
25 System.out.println(random.nextInt(stones+1) + " " +
26 messages[random.nextInt(messages.length)]);
29 System.out.println(random.nextInt(stones+1));