import java.util.*;
    class Vehicle{
        String make;
        String model; 
    Vehicle(String make,String model){
        this.make=make;
        this.model=model;
      }
      void displayinfo(){
          System.out.println(make);
           System.out.println(model);
      }
    }
    class ElectricVehicle extends Vehicle{
        double batterycapacity;
        boolean chargingstatus;

    ElectricVehicle(String make,String model,double batterycapacity,boolean chargingstatus){
        super(make,model);
        this.batterycapacity=batterycapacity;
        this.chargingstatus=chargingstatus;
    }
    void displayinfo(){
        System.out.println(make);
        System.out.println(model);
        
        System.out.printf("%.1f kWh\n",batterycapacity);
        if(chargingstatus){
            System.out.println("Charging");
        }
        else{
            System.out.println("Not Charging");
        }
      }
    }
    public class Main{
        public static void main(String[] args){
            Scanner sc=new Scanner(System.in);
            String vmake=sc.next();
            String vmodel=sc.next();
            Vehicle v=new Vehicle(vmake,vmodel);
            v.displayinfo();         
           String evmake=sc.next();     //we can overwrite the variable like
             String evmodel=sc.next();       //vmake=sc.nextInt();
            double capacity=sc.nextDouble();
            if(capacity<0){
                System.ou.println("Invalid input");
                return;
            }//vmodel=sc.nextInt();
            boolean charging=sc.nextBoolean();
            ElectricVehicle ev=new ElectricVehicle(evmake,evmodel,capacity,charging); //(make,model,capacity,charging)
            ev.displayinfo();
        }
        
    }