import java.io.*;
import java.util.StringTokenizer;
public class buffer {
public static void main(String args[])throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
StringTokenizer st = new StringTokenizer(str," ");
int num[]=new int [st.countTokens()];