java.util.Scanner sc = new java.util.Scanner(System.in);
int a = Integer.parseInt(sc.nextLine());
System.out.println(a % 2 == 0 ? "짝수" : "홀수");
java.util.Scanner sc = new java.util.Scanner(System.in);
int a = Integer.parseInt(sc.nextLine());
int b = Integer.parseInt(sc.nextLine());
System.out.println(a % b == 0 ? "배수이다." : "배수가 아니다.");
java.util.Scanner sc = new java.util.Scanner(System.in);
int a = Integer.parseInt(sc.nextLine());
int _500 = a / 500;
int _100 = (a % 500) / 100;
System.out.println("500원 " + _500 + "개");
System.out.println("100원 " + _100 + "개");
java.util.Scanner sc = new java.util.Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
int m = Integer.parseInt(sc.nextLine());
System.out.println((n * 500) + (m * 100) + "원");
java.util.Scanner sc = new java.util.Scanner(System.in);
int input = Integer.parseInt(sc.nextLine());
int seconds = input % 60;
int minutes = (input / 60) % 60;
int hours = input / 60 / 60;
System.out.println(hours + "시간 " + minutes + "분 " + seconds + "초");
java.util.Scanner sc = new java.util.Scanner(System.in);
int hours = Integer.parseInt(sc.nextLine());
int minutes = Integer.parseInt(sc.nextLine());
int seconds = Integer.parseInt(sc.nextLine());
int result = (hours * 60 * 60) + (minutes * 60) + seconds;
System.out.println(result + "초");