public static void main(String[] args) throws FileNotFoundException {
        RoomCheckinCheckoutTracker roomCheckinCheckoutTracker = new RoomCheckinCheckoutTracker();
        System.out.println("Enter the number of visits ");
        Scanner scanner = new Scanner(System.in);
        int totalInputs = Integer.parseInt(scanner.nextLine());
        int count=0;
        while(count<totalInputs){
            System.out.println("The total number of inputs is "+totalInputs);
            System.out.println("Now enter the intput in the format VisitorId, roomId, I, Time");
            String[] inputs = scanner.nextLine().split(" ");
            System.out.println("Size is "+inputs.length);
            roomCheckinCheckoutTracker.trackRoomCheckIn(Integer.parseInt(inputs[1]),Integer.parseInt(inputs[0]),inputs[2].equals("I"),Integer.parseInt(inputs[3]));
            count++;
        }


        TreeMap<Integer,ArrayList<Tracker>> allVisitorsOfRoom = roomCheckinCheckoutTracker.getAllVisitorsOfRoom();
        for (Integer roomId : allVisitorsOfRoom.keySet()){
            int totalTime = 0;
            StartEndTime startEndTime;
            for (Tracker tracker : allVisitorsOfRoom.get(roomId)){
                    startEndTime = tracker.getStartEndTime();
                    totalTime +=startEndTime.getEndTime()-startEndTime.getStarTime();
            }
            int numberOfVisitors = allVisitorsOfRoom.get(roomId).size();
            System.out.println(" Room ID "+roomId+ " "+totalTime/numberOfVisitors+ " minute average visit, "+numberOfVisitors+
            " visitor(s) total");
        }
    }