import java.util.Scanner; //needed for input
 
class Tickets2
{
  
  public static void main (String[] args)
  {
    int age;                      
    double cost;
    
    System.out.println("Enter the age");    
    age = 20;
    
    cost = 10;
    
    if(age <=16)             
       cost=7.0;
    else 
       if (age >=65) 
          cost=5;

        
        
    System.out.println("The cost of the ticket is "+ cost);  
     
  }
}