// A program to work out the Binomial Coefficient of 2 numbers. Uses Interfaces.
//by Neil Broadbent

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.*;

public class Binomial
{
   public static void main(String[] args) throws IOException
   {
            final BufferedReader tKeyboard = new BufferedReader(new InputStreamReader(System.in));

            System.out.print("Type in the first  numbers in the form 6,3 ");
            final String tInput = tKeyboard.readLine();
            StringTokenizer tTokensOnLine = new StringTokenizer(tInput, ",");

            String tThisToken = tTokensOnLine.nextToken();
            int N1 = new Integer(tThisToken).intValue();

            tThisToken = tTokensOnLine.nextToken();
            int N2 = new Integer(tThisToken).intValue();	

            final BinomialInterface tBinomial = new GetBiClass(N1,N2);

            System.out.println("The Binomial Coefficient is " + tBinomial.getBinomial());	
   }
}
