import java.util.*;
class Vehicle{
    String make;
    String model;
    
    Vehicle(String a , String b)
    {
        this.make = a;
        this.model = b;
    }
    void display()
    {
        System.out.println(make);
        System.out.println(model);
    }
}
class ElectricVehicle {
    double battery;
    boolean charging;
    ElectricVehicle(String c , String d, double e , boolean f)
    {
        super(c,d);
        this.battery = e;
        this.charging=f;
    }    
    void display(){
        super.display();
        if(battery<0)
        {
            System.out.print("Invalid input");
            return;
        }
        System.out.printf("%.1f kWh%n",battery);
        if(charging)
        {
            System.out.print("Charging");
        }else{
            System.out.print("Not Charging");
        }
    }
}

class Main{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        if(!sc.hasNextLine()){
            System.out.print("Invalid input");
        }
        String a = sc.next();
        String b = sc.next();
        String c =sc.next();
        String d = sc.next();
        double e = sc.nextDouble();
        boolean f = sc.nextBoolean();
        Vehicle v = new Vehicle(a,b);
        ElectricVehicle ev = new ElectricVehicle(c,d,e,f);
        v.display();
        ev.display();
    }
}