import java.util.Scanner;
import java.util.Random;
public class dieRoll
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
Random rand = new Random();
System.out.println("Type number of sides on die: ");
int faces = input.nextInt();
int freq[] = new int[1 + faces];
for(int roll = 1; roll < 1000; roll++)
{
++freq[1 + rand.nextInt(faces)];
}
System.out.println("Face\tFrequency");
for(int side = 1; side < freq.length; side++);
{
System.out.println(side+ "\t" + freq[side]);
}
}
}