import java.util.Scanner; public class Main{ static boolean f(long x){ if(x%3==0) return true; else{ String str=Long.toString(x); for(int i=0;i