//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// String a = t.nextLine();
//
// System.out.println(a);
// }
// }
//산술연산자 (계산)
//+ - * / %
//
//a+b
//a-b
//a*b
//a/b 정수/정수 -> 정수몫
//ex) 10/3 -> 3
//실수/정수
//정수/실수 -> 실수값
//실수/실수
//ex)10.0/3 -> 3.333333
//a%b a를 b로 나눈 나머지
//ex) 10%3 -> 1
//int : 약 -21억 ~ +21억 (-2147483648 ~ 2147483647)
//long : int 보다는 큰 범위, 무한대는 아님
//overflow (오버플로 )
//
//int + int -> int
//long + int
//int + long -> long
//long + long
//
//casting 강제형변환
/*
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();
// System.out.println((long)a+b);
System.out.println(a/b); // 정수/정수 -> 정수 몫
System.out.println((float)a/b); //실수/정수 -> 실수
System.out.println(a%b);
}
}
1042-1047
*/
//
//import java.util.*;
//
//public class Main {
// public static void main(String[] args ) {
// Scanner t = new Scanner(System.in);
//
// int a = t.nextInt();
// int b = t.nextInt();
//
// System.out.println(a/b);
//
// }
//}
//
//
//
//import java.util.*;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
// int a = t.nextInt();
// int b = t.nextInt();
// System.out.println(a%b);
// }
//}
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
int c = t.nextInt();
System.out.println(a+b+c);
System.out.printf("%.1f",(float)(a+b+c)/3);
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
System.out.println((long)a*2);
}
}
*******************************
비교 > < >= <= == !=
1. 결과는 true or false로 나온다
2. >= <= != =을 항상 오른쪽에
3. == vs =
a=1; (대입) a에 1을 대입해.
a==1 (비교) a와 1이 같나요?
우재=2;
우재==2
**********************************
논리연산자
논리값 (true or false)
1. not !
a = true;
!a -> false
2. and && -> 양쪽 모두 true인가요?
( ) && ( )
a b a && b
false false false
false true false
true false false
true true true
ex)
int a=10;
int b=5;
System.out.println(a==10 && b>5);
3. or || -> 둘 중 하나라도 true인가요?
a b a || b
false false false
false true true
true false true
true true true
************************************
import java.util.*;
public class Main {
public static void main(String[] args) {
int a=1,b=7; // a에 1을 대입해 (명령)
if (a==b) {
System.out.println();
}
else if(a>b) {
}
else {
}
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
if (a>b) {
System.out.println("1");
}
else if (a<=b) {
System.out.println("0");
}
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
if (a==b) {
System.out.println("1"); }
else {
System.out.println("0");
}
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
if (b>=a) {
System.out.println("1"); }
else {
System.out.println("0");
}
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
if (a==b) {
System.out.println("0"); }
else {
System.out.println("1");
}
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in)70
;
int a = t.nextInt();
if (a==1) {
System.out.println("0"); }
else if (a==0) {
System.out.println("1"); }
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
if (a==1 && b==1) {
System.out.println("1"); }
else {
System.out.println("0"); }
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
if ( a==1||b==1) {
System.out.println("1"); }
else {
System.out.println("0");
}
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
System.out.println(a + "+" + b + "=" +(a+b));
System.out.println(a + "-" + b + "=" +(a-b));
System.out.println(a + "*" + b + "=" +(a*b));
System.out.println(a + "/" + b + "=" +(a/b));
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
double a = t.nextDouble();
double b = t.nextDouble();
System.out.printf("%.2f",a*b);
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
System.out.println(a/60 + " " +(a%60));
}
}
산술연산자 + - * / % , overflow, casting
비교연산자 > < >= <= == != true or false,
논리연산자 ! && ||
삼항연산자 (조건연산자)
조건식 ? 조건식이 true일때의 값 : 조건식이 false일때의 값
조건식 (결과가 true or false로 나오는 식)
int c = 50>70 ? 100 : 200 ;
// a가 10보다 크면 hello, 아니면 world 를 출력
System.out.println( a>10 ? "hello" : "world" );
if(a>10) {
System.out.println("hello");
}
else {
System.out.println("world");
}
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
// 둘 중 큰 수 ? 둘 중 작은 수 ? 주로 사용
int box = a>b ? a : b ;
System.out.println(box);
int box2 = a<b ? a:b ;
// Scanner t = new Scanner(System.in);
// double a = t.nextDouble();
// System.out.printf("%.3f",1.8*(a)+32);
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner x = new Scanner(System.in);
int a = x.nextInt();
int b = x.nextInt();
System.out.println(a>b? a:b);
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
int c = t.nextInt();
int box = a<b? a:b;
System.out.println(box<c? box:c);
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
System.out.println(a%b);
}
}
*/
/*
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
System.out.println(-a);
}
}
*/