/*
import java.util.*;
public class Main {
public static void main(String[] args) {
int a=-100;
System.out.println(a);
}
}
*/
/*
import java.util.*;
public class Main{
public static void main(String[] args) {
int a=55;
int b=10;
int c=2008;
int d=1999;
System.out.println(a+" - "+b+" = "+(a-b));
System.out.println(c+" - "+d+" = "+(c-d));
}
}
*/
/*
import java.util.*;
public class Main{
public static void main(String[] args) {
double yd=91.44,in=2.54;
System.out.printf(" 2.1yd = ");
System.out.printf("%.1f",2.1*yd);
System.out.printf("cm\n");
System.out.printf("10.5in = ");
System.out.printf("%.1f",10.5*in);
System.out.printf("cm");
}
}
*/
/*
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("height = ");
int a=sc.nextInt();
System.out.println("Your height is "+a+"cm.");
}
}
*/
/*
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
System.out.println("sum : "+(a+b+c));
System.out.println("avg : "+((a+b+c)/3));
}
}
*/
/*
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a= sc.nextInt();
int b= sc.nextInt();
int c= sc.nextInt();
int d= sc.nextInt();
System.out.println(a>c&&b>d);
}
}
*/
/*
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a= sc.nextInt();
int b= sc.nextInt();
if(b+100-a>0)
{
System.out.println(b+100-a);
System.out.println("Obesity");
}
else
{
System.out.println(b+100-a);
}
}
}
*/
/*
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
double a =sc.nextDouble();
if(a<=50.80)
{
System.out.println("Flyweight");
}
else if(a<=61.23)
{
System.out.println("Lightweight");
}
else if(a<=72.57)
{
System.out.println("Middleweight");
}
else if(a<=88.45)
{
System.out.println("Cruiserweight");
}
else
{
System.out.println("Heavyweight");
}
}
}
문자열과 문자열 비교시
== (x)
equals 메소드 사용
*/
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str =sc.next();
int b =sc.nextInt();
if(str.equals("F"))
{
if(b>=18)
{
System.out.println("WOMAN");
}
else
{
System.out.println("GIRL");
}
}
else
{
if(b>=18)
{
System.out.println("MAN");
}
else
{
System.out.println("BOY");
}
}
}
}
http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&sca=1050
선택제어문 홀수번째만 쭉 풀기
반복제어문1 홀수번째만
https://fjdkslvn.tistory.com/84
JDK + ECLIPSE