import java.io.*;

/**
 * The Bean Farmer wants to collect beans in a pile.  We need to write
 * methods for adding and removing Beans, as well as finding beans with
 * a certain color.
 */
class BeanFarmer {
    
    public static Stack pile;             // our pile of Beans
    public static BufferedReader stdin;   // the pipeline to the user

    public static void main (String[] args) {
	
	stdin = new BufferedReader( new InputStreamReader( System.in ));

	pile = new Stack(6);

	addBeans(4);

	displayPile();

	int count = countColorBeans("GREEN");
	System.out.println("Found " + count + " bean(s)");

	removeBeans(2);

    }

    public static void addBeans(int count) {










    }
    
    public static void displayPile() {


    }

    public static int countColorBeans(String match) {






    }

    public static void removeBeans(int count) {




    }
}

