import java.util.Scanner;
/**
* 判断一个数是奇数还是偶数,循环可使用ctrl+D结束
*/
public class TestDemo {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);//创建对象
while (scanner.hasNextInt()) {//判断是否还有数字输入,如果有就继续
int num = scanner.nextInt();
if (num % 2 == 0) {
System.out.println(num + "是偶数");
} else {
System.out.println(num + "是奇数");
}
}
}
}