import java.util.*;
//2
//
//class Grade{
// private int math,science,english;
// public Grade (int math,int science,int english){
// this.math= math;
// this.science = science;
// this.english = english;
// }
// public int average (){
// return (math+science+english)/3;
//
// }
//}
//
//public class Main {
//
// public static void main(String[] args) {
// Scanner t= new Scanner(System.in);
//
// System.out.println("수학, 과학, 영어 순으로 3개의 점수 입력>>");
// int math = t.nextInt();
// int science = t.nextInt();
// int english = t.nextInt();
//
// Grade me = new Grade(math, science, english);
// System.out.println("평균은 "+ me.average());
//
//
// }
//
//}
//4
/*class Rectangle{
int x,y,width,height;
public Rectangle(int x,int y,int width,int height) {
this.x=x;
this.y=y;
this.width= width;
this.height= height;
}
public int square() {
return width*height;
}
public void show(){
System.out.println("("+x+","+y+")에서 크키가 "+width+"x"+height+"인 사각형");
}
public boolean contains(Rectangle r) {
if(r.x>x&&r.y>y&&r.width+r.x<x+width&&r.height+r.y<y+height) {
return true;
}
else return false;
}
}
public class Main{
public static void main(String[] args) {
Rectangle r = new Rectangle(2,2,8,7);
Rectangle s = new Rectangle(5,5,6,6);
Rectangle t = new Rectangle(1,1,10,10);
r.show();
System.out.println("s의 면적은 "+ s.square());
if(t.contains(r)) System.out.println("t는 r을 포함합니다.");
if(t.contains(s)) System.out.println("t는 s을 포함합니다.");
}
}
*/
//6
/*
class Circle{
private double x,y;
private int radius;
public Circle (double x, double y, int radius) {
this.x=x;
this.y=y;
this.radius=radius;
}
public void show() {
System.out.println("가장 면적이 큰 원은 ("+x+","+y+")"+radius);
}
public int getr()
{
return radius;
}
}
public class Main{
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
Circle c [] = new Circle [3];//3개의 서클 배열
for(int i=0; i<c.length ;i++) {
System.out.print("x, y, radius >>");
double x = t.nextDouble();
double y = t.nextDouble();
int radius = t.nextInt();
c[i] = new Circle(x,y,radius);
}
int max=0;
for (int i=0; i<c.length;i++) {
if(c[max].getr()<c[i].getr()) max=i;
}
c[max].show();
}
}*/
class Phonebook{
String name, tel;
public Phonebook (String name, String tel) {
this.name=name;
this.tel=tel;
}
}
public class Main{
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
System.out.print("인원수>>>");
int num = t.nextInt();
Phonebook phb [] = new Phonebook [num];
for(int i=0; i<=phb.length ;i++) {
System.out.print("이름과 전화번호(이름과 번호는 빈 칸 없이 입력)>>");
String name = t.nextLine();
String tel = t.nextLine();
phb[i] = new Phonebook(name,tel);
}
System.out.println("저장되었습니다...");
}
}