//import java.util.*;
//class Day{
// private String work;
// public void set(String work) {this.work=work;}
// public String get() {return work;}
// public void show() {
// if(work==null)
// {S
// System.out.println("없습니다");
// }
// else
// {
// System.out.println(work+"입니다");
// }
// }
//}
//class Main
//{
// public static void main(String[] args) {
// Scanner sc=new Scanner(System.in);
// System.out.println("이번달 스케쥴 관리 프로그램.");
// Day[] april= new Day[35];
// for(int i=0;i<35;i++) april[i] = new Day();
// for(;;)
// {
// System.out.print("할일(입력:1, 보기:2, 끝내기:3)>>");
// int choice=sc.nextInt();
// if(choice==1)
// {
// System.out.print("날짜(1~30)? ");
// int a=sc.nextInt();
// System.out.print("할일 (빈칸없이 입력)? ");
// String schedule=sc.next();
// april[a].set(schedule);
// }
// else if(choice==2)
// {
// System.out.print("날짜(1~30)? ");
// int a=sc.nextInt();
// System.out.print(a+"일의 할 일은 ");
// april[a].show();
// }
// else
// {
// System.out.println("프로그램을 종료합니다.");
// return ;
// }
// }
//
// }
//}
//import java.util.*;
//
//class Number {
//
// String tel;
//
// String name;
//
// Number(String tel, String name)
//
// {
//
// this.tel = tel;
//
// this.name = name;
//
// }
//
// void show() {
//
// System.out.println(name + "의 번호는 " + tel + "입니다");
// }
//
//}
//
//class Main
//
//{
//
// public static void main(String[] args) {
//
// Scanner sc = new Scanner(System.in);
//
// Number[] a = new Number[101];
//
// System.out.print("인원수>>");
//
// int s = sc.nextInt();
//
// for (int i = 0; i < s; i++)
//
// {
//
// System.out.print("이름과 전화번호(이름과 번호는 빈칸없이 입력)>>");
//
// String name = sc.next();
// String tel = sc.next();
// a[i]=new Number(tel,name);
//
// }
// System.out.println("저장되었습니다...");
// while(true)
// {
// System.out.print("검색할이름>>");
// String x=sc.next();
// if(x.equals("그만"))
// {
// return ;
// }
// int flag=0;
// for(int i=0;i<s;i++)
// {
// if(x.equals(a[i].name))
// {
// a[i].show();
// flag=1;
// }
// }
// if(flag==0)
// {
// System.out.println(x+"이 없습니다");
// }
// }
//
// }
//
//}
import java.util.*;
class Dictionary{
private static String [] kor= {"사랑","아기","돈","미래","희망"};
private static String [] eng= {"love","baby","money","future","hope"};
public static String kor2Eng(String word)
{
for(int i=0;i<kor.length;i++)
{
if(word.equals(kor[i]))
{
return eng[i];
}
}
return "저의 사전에 없습니다.";
}
}
class Main
{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("한영 단어 검색 프로그램입니다.");
while(true)
{
System.out.print("한글단어?");
String x=sc.next();
if(x.equals("그만"))
{
return ;
}
System.out.println(x+"은"+Dictionary.kor2Eng(x));
}
}
}