import java.util.Scanner;
public class app{
public static void main(String[] args){
Scanner myscanner=new Scanner(System.in);
System.out.println("季:");
int ji =myscanner.next().charAt(0);
if(ji>3&&ji<11){
System.out.println("年龄:");
int age=myscanner.nextInt();
if(age>0&&age<200){
if( age>=18 && age<=60 ) {
System.out.println("您的票价为:60");
}
else if(age<18) {
System.out.println("您的票价为:30");
}
else System.out.println("您的票价为:20");
}
else System.out.println("您输入的年龄不准确,请重新输入");
}
else {
System.out.println("年龄:");
int age=myscanner.nextInt();
if(age>0&&age<200){
if( age>=18 && age<=60 ) {
System.out.println("您的票价为:60");
}else System.out.println("您的票价为:20");
}
else System.out.println("您输入的年龄不准确,请重新输入");
}
}
}