import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

public class JI9034813 {

	public static void main(String[] args) {
		 InputStream inputStream = new InputStream() { 
	            private boolean firstRead = true; 

	            @Override 
	            public int read() throws IOException { 
	                throw new RuntimeException("Not supported"); 
	            } 

	            @Override 
	            public int read(byte[] b, int offset, int length) { 
	                if (firstRead) { 
	                    firstRead = false; 
	                    return 0; 
	                } 
	                 
	                b[offset] = 'A'; 
	                 
	                return 1; 
	            } 
	        }; 

	        try (Scanner scanner = new Scanner(inputStream)) { 
	            System.out.println(scanner.hasNext()); 
	        } 

	}

}
