//
//import java.util.Scanner;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner (System.in);
//
// int x = t.nextInt();
// System.out.printf("%.3f", ((double)9/5*x+32));
// }
//}
//// NOTES ON IF AND ELSE IF AND ELSE!
////
////
////
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int x = t.nextInt();
//
// if(x > 50) {
// System.out.println("UNDER");
// // use if(CONDITION) { and } in the end to show IF condition
// if() {
// // can add in IFs inside IF
// }
// else if(x > 25) {
// if() {
// //
// }
// else if() {
// // can add ELSE IF in side-repetetive phrase as well
// }
//
// }
// System.out.println("BETWEEN");
// }
// else if(x % 2 == 0 || x % 5 == 0) {
// System.out.println("52");
// }
// else {
//
// }
//
//
// if() {
// // can add different "blocks" of indfferent
// }
// if() {
//
// }
// }
//}
//// 1151
//import java.util.Scanner;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner (System.in);
//
// int x = t.nextInt();
// if (x<10) {
// System.out.print("small");
// }
// }
//}
// 1152
//import java.util.Scanner;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner (System.in);
// int x = t.nextInt();
//
// if (x < 10) {
// System.out.print("small");
// }
// if (x>=10) {
// System.out.print("big");
// }
// }
//}
//// 1153
//import java.util.Scanner;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner (System.in);
//
// int x = t.nextInt();
// int y = t.nextInt();
//
// if (x>y) {
// System.out.print(">");
// }
// else if (y>x) {
// System.out.print("<");
// }
// else {
// System.out.print("=");
// }
// }
//
//}
//// 1154
//import java.util.Scanner;
//public class Main {
// public static void main(String [] args) {
// Scanner t = new Scanner (System.in);
//
// int x = t.nextInt();
// int y = t.nextInt();
// if(x>y) {
// System.out.print(x-y);
// }
// else if(y>x) {
// System.out.print(y-x);
// }
// else {
// System.out.print("0");
// }
// }
//}
//// 1155
//import java.util.Scanner;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner (System.in);
// int x = t.nextInt();
//
// if(x%7 == 0) {
// System.out.print("multiple");
// }
// else {
// System.out.print("not multiple");
// }
// }
//}
//
//// 1156
//import java.util.Scanner;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner (System.in);
//
// int x = t.nextInt();
// if(x%2 == 0) {
// System.out.print("even");
// }
// else {
// System.out.print("odd");
// }
// }
//}
//
// 1210
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner t = new Scanner (System.in);
int x = t.nextInt();
int y = t.nextInt();
int a = 0;
if(x==1) {
a += 400;
}
else if(x==2) {
a += 340;
}
else if(x==3) {
a += 170;
}
else if (x==4) {
a += 100;
}
else if (x==5) {
a += 70;
}
if(y==1) {
a += 400;
}
else if(y==2) {
a += 340;
}
else if(y==3) {
a += 170;
}
else if (y==4) {
a += 100;
}
else if (y==5) {
a += 70;
}
if(a>500) {
System.out.print("angry");
}
else {
System.out.print("no angry");
}
}
}
top of page

기능을 테스트하려면 라이브 사이트로 이동하세요.
20240602
20240602
댓글 0개
좋아요
댓글(0)
bottom of page