//class Pl
//{
// String name, word;
// public Pl(String name)
// {
// this.name = name;
// }
// public void wr(String word)
// {
// this.word = word;
// }
// public boolean check(String word)
// {
// if(this.word.charAt(this.word.length()-1) == word.charAt(0))
// {
// this.word = word;
// return true;
// }
// else
// {
// System.out.println(this.name+"이/가 졌습니다.");
// return false;
// }
// }
//}
//public class Main
//{
// public static void main(String[] args)
// {
// Scanner t = new Scanner(System.in);
// int m = 0, bool = 1;
// System.out.println("끝말잇기 게임 시작");
// System.out.print("참가 인원은? >> ");
// int n = t.nextInt();
// Pl[] pl = new Pl[n];
// for(int i=0; i < n; i++)
// {
// System.out.print("참가자의 이름은? >> ");
// String name = t.next();
// pl[i] = new Pl(name);
// }
// System.out.println("시작단어 = 아버지");
// pl[0].wr("아버지");
// while(true)
// {
// System.out.print(pl[m].name + " >> ");
// String word = t.next();
// if (pl[m].check(word)==false)
// {
// return ;
// }
// if(m==n-1)
// {
// m=0;
// pl[m].wr(word);
// }
// else
// {
// m++;
// pl[m].wr(word);
// }
// }
// }
//}
/*
import java.util.*;
class Person{
static int num=0; //Person 클래스로 선언된 객체들이 공통으로 가지는 변수
String name;
static void up() {
num++;
//name="hello";
}
}
class Mymath{
static int mysum(int a, int b) {
return a+b;
}
}
class Main{
public static void main(String[] args) {
System.out.println(Mymath.mysum(10, 20));
//static 필드나 메소드는 객체를 선언하기 전에도 사용이 가능하다.
Person.num++;
Person.up();
System.out.println(Person.num);
// Person a = new Person();
// Person b = new Person();
//
// System.out.println("a.num : "+a.num);
// a.num++;
// System.out.println("b.num : "+b.num);
// Person.num++;
// System.out.println("Person.num : "+Person.num);
//
// a.up();
// b.up();
// Person.up();
}
}*/
//class AU
//{
// public static int [] cc(int[] a, int[] b)
// {
// int [] array = new int[a.length+b.length];
// for(int i=0; i<a.length; i++)
// {
// array[i] = a[i];
// }
// for(int i=0; i<b.length; i++)
// {
// array[i+a.length] = b[i];
// }
// return array;
// }
// public static void print(int[] a)
// {
// System.out.print("[ ");
// for(int i=0; i<a.length-1; i++)
// {
// System.out.print(a[i]+", ");
// }
// System.out.print(a[a.length-1]+" ]");
// }
//}
//public class Main
//{
// public static void main(String[] args)
// {
// int [] Array1 = {1, 5, 7, 9};
// int [] Array2 = {3, 6, -1, 100, 77};
// int [] Array3 = AU.cc(Array1, Array2);
// AU.print(Array3);
// }
//}