public class Text06 {
public static void main(String[] args) {
String[] str = { "鲜橙多", "可乐", "雪碧", "二锅头", "啤酒", "红酒" };
HashMap<Student, String> hm = new HashMap<>();
Scanner sc = new Scanner(System.in);
StringBuffer sb = new StringBuffer();
for (int i = 0; i < 3; i++) {
String st = sc.nextLine();
sb.append(st + ",");
}
String[] arr = sb.toString().split("\\,");
for (String st : arr) {
System.out.println(st);
}
Random r = new Random();
for (int i = 0; i < arr.length; i += 2) {
int num = 0;
String drink = "";
if (Integer.parseInt(arr[i + 1]) < 18) {
num = r.nextInt(3);
drink = str[num];
} else {
num = r.nextInt(6);
drink = str[num];
}