//import java.util.*;
//public class Main
//{
// public static void main(String[] args)
// {
// Scanner t = new Scanner(System.in);
//
// int map[][] = new int[15][15];
// int map2[][] = new int [15][15];
// int player[][] = new int [8][2];
// for(int i=0; i<10; i++)
// {
// for(int j=0; j<10; j++)
// {
// map[i][j]=t.nextInt();
// map2[i][j] = map[i][j];//맵2에 맵1의 데이터를 복제\\
// }
// }
// int n=t.nextInt();
//
// for(int i=0; i<n; i++)
// {
// player[i][0] = t.nextInt();
// player[i][1] = t.nextInt();
// }
// //입력 완료 이제 노가다 시작\\
//
// for(int i=0; i<10; i++)
// {
// for(int j=0; j<10; j++)
// {
// if(map[i][j] > 0)//맵1에서 폭탄있어?\\
// {
// int b = map[i][j];
// int up = 0;
// int down = 0;
// int right = 0;
// int left = 0;
// for(int k=0; k<b+1; k++)
// {
// if(map[i+k][j] != -1 && down == 0){map[i+k][j] = -2;}
// else{down=1;}
// if(i-k >= 0 && map[i-k][j] != -1 && up == 0) {map[i-k][j] = -2;}
// else {up=1;}
// if(map[i][j+k] != -1 && right == 0) {map[i][j+k] = -2;}
// else {right =1;}
// if(j-k >= 0 && map[i][j-k] != -1 && left == 0) {map[i][j-k] = -2;}
// else {left = 1;}
// }
// }
// else if(map2[i][j] > 0) //아 없어? 그럼 맵 2에서 찾아봐\\
// {
// int b = map2[i][j];
// int up = 0;
// int down = 0;
// int right = 0;
// int left = 0;
// for(int k=0; k<b+1; k++)
// {
// if(map[i+k][j] != -1 && down == 0){map[i+k][j] = -2;}
// else{down=1;}
// if(i-k >= 0 && map[i-k][j] != -1 && up == 0) {map[i-k][j] = -2;}
// else {up=1;}
// if(map[i][j+k] != -1 && right == 0) {map[i][j+k] = -2;}
// else {right =1;}
// if(j-k >= 0 && map[i][j-k] != -1 && left == 0) {map[i][j-k] = -2;}
// else {left = 1;}
// }
// }//맵2에도 없어? 그럼 진짜 없는거야 돌아가서 다시 시작해\\
// }
// }
// //노가다 끝 플레이어 시작\\
//
// for(int i=0; i<n; i++)
// {
// int x=player[i][0]-1;
// int y=player[i][1]-1;
// if(map[x][y] != -2){map[x][y] = i+1;}
// else {continue;}
// }
// //플레이어 끝 프린트 시작\\
//
// //맵 프린트\\
// for(int i=0; i<10; i++)
// {
// for(int j=0; j<10; j++)
// {
// System.out.print(map[i][j] + " ");
// }
// System.out.println();
// }
//
// System.out.println("Character Information");
//
// //플레이어 상황 프린트\\
// for(int i=1; i<n+1; i++)
// {
// int x=player[i-1][0]-1;
// int y=player[i-1][1]-1;
// if(map[x][y] == i){System.out.println("player " + i + " survive");}
// else {System.out.println("player " + i + " dead");}
// }
// }
//}
//접근지정자
//class Person{
// //필드 (변수)
// int hair;
// private int age;
// private String name;
//
// //생성자 : 객체 생성시 필드값의 초기화
// Person(){
//// age = 5000000;
//// name = "no name";
// this(50000,"no name"); //자신의 다른 생성자 호출
// }
// Person(int age){
// this(age,"no name");
// }
// Person(int age, String name){
// this.age = age;
// this.name = name;
// }
//
// void view() { //메소드 (함수)
// System.out.println(age +"살의 " +name);
// }
// public void setAge(int age) {
// this.age =age;
// }
//}
//class Main{
// public static void main(String[] args) {
// Person a; //레퍼런스 변수 생성
// a = new Person(); //객체 생성
// a.setAge(50);
//// a.age = 500;
//// a.name = "원장님";
//// System.out.println(a.age +"살의 " +a.name);
//
// Person b = new Person(50); // 레퍼런스변수 + 객체 생성
// b.view();
//
// Person c = new Person(5000,"윤건");
// c.view();
// }
//}
//class TV
//{
// String name;
// int year;
// int inch;
// TV(String name, int year, int inch)
// {
// this.name = name;
// this.year = year;
// this.inch = inch;
// }
// void show()
// {
// System.out.println(name + "에서 만든 " + year + "년형 " + inch + "");
// }
//}
//public class Main
//{
// public static void main(String[] args)
// {
// TV myTV = new TV("LG", 2017, 32);
// myTV.show();
// }
//}