import java.util.ArrayList;
import java.util.Collections;
public class Poker {
public static void main(String[] args) {
ArrayList<String> arr =new ArrayList<String>();
ArrayList<String> lqxarr =new ArrayList<String>();
ArrayList<String> lyarr =new ArrayList<String>();
ArrayList<String> smarr =new ArrayList<String>();
ArrayList<String> dparr =new ArrayList<String>();
String [] colors ={"hongtao","heitao","fangpian","meihua"};
String [] number ={"2","3","4","5","6","7","8","9","10","J","Q","k","A"};
for(int i=0;i<colors.length;i++){
for(int j=0;j<number.length;j++){
arr.add(colors[i]+number[j]);
}
}
arr.add("dawang");
arr.add("xiaowang");
Collections.shuffle(arr);
for(int i=0;i<arr.size();i++){
// System.out.println(arr1);
if(i>=arr.size()-3)
{
dparr.add(arr.get(i));
}
else if(i%3==0)
{
lqxarr.add(arr.get(i));
}
else if(i%3==1)
{
lyarr.add(arr.get(i));
}
else if(i%3==2)
{
smarr.add(arr.get(i));
}
}
lookPoker("lingqingxia",lqxarr);
lookPoker("liouyan",lyarr);
lookPoker("sanmao",smarr);
lookPoker("dipai",dparr);
}
public static void lookPoker(String name,ArrayList<String> array){
System.out.print(name +"de pai is ");
for(String st :array) {
System.out.print( st+ " ");
}
System.out.println("\t");
}
}