//import java.util.*;
//
//class Book{
// String title, author;
// public Book(String title,String author) {
// this.title = title;
// this.author = author;
//
// }
//}
//
//
//
//public class Main {
// public static void main(String[] args) {
// Book [] book = new Book[2];
// Scanner t = new Scanner(System.in);
// for (int i=0;i<book.length;i++) {
// System.out.print("제목>>");
// String title = t.nextLine();
// System.out.print("저자>>");
// String author = t.nextLine();
// book[i] = new Book(title, author);
// }
// for(int i= 0; i<book.length;i++) {
// System.out.print("("+book[i].title + ", "+book[i].author + ")");
// }
// }
//}
//import java.util.*;
//
//class Tv{
// String logo;
// int year,inch;
// public Tv(String logo, int year, int inch) {
// this.logo = logo;
// this.year = year;
// this.inch = inch;
// }
// void show() {
// System.out.println(logo +"에서 만든 "+year+"년형 "+inch+"인치 TV");
// }
//
//}
//
//public class Main {
// public static void main(String[] args) {
// Tv myTv = new Tv("LG",2017,32);
// myTv.show();
// }
//}
//import java.util.*;
//
//class Grade{
// 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.print("수학, 과학, 영어 순으로 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());
//
// }
//}
//
//import java.util.*;
//
//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.print("수학, 과학, 영어 순으로 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());
//
// }
//}
//
//import java.util.*;
//
//class parents {
// int a, b, c;
//
// parents() {
// System.out.println("Parents Contructor Base");
// }
//
// parents(int a, int b, int c) {
// this.a = a;
// this.b = b;
// this.c = c;
// System.out.println("Parents Contructor Extend");
// }
//
// void show() {
// System.out.println("I'''m your parentss");
// }
//}
//
//class child extends parents {
// child() {
// System.out.println("Child Constructor Base");
// }
// child(int a) {
// super(10, 20, 30);
// this.a = a;
// System.out.println("Exte");
// }
//
// void show() {
// System.out.println("IM YOUR ^^");
// }
//}
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// child c = new child(10);
//
// c.a = 10;
// c.show();
// }
//}
//
import java.util.*;
class Point{
private int x,y;
public void set(int x, int y) {
this.x= x;
this.y= y;
}
public void showPoint() {
System.out.println("("+ x+","+y +")");
}
}
class ColorPoint extends Point{
private String color;
public void setColor(String color) {
this.color = color;
}
public void showColorPoint() {
System.out.print(color);
showPoint();
}
}
public class Main{
public static void main(String[] args) {
Point p = new Point();
p.set(1,2);
p.showPoint();
ColorPoint cp = new ColorPoint();
cp.set(3,4);
cp.setColor("red");
cp.showColorPoint();
}
}