View Code of Problem 20

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));
		String string ;
		while((string =bReader.readLine() )!= null) {
		    int n = Integer.parseInt(string);
			if(n % 3 == 0) {
				System.out.println("No");
			}
			else {
				System.out.println("Yes");
			}
		}
	}
}

Double click to view unformatted code.


Back to problem 20