public class Solution {
    public static void main(String[] args) throws DownloadException{
        boolean b = true;
        while(b) {
            try {
                BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
                FileInputStream fis = new FileInputStream(buff.readLine());
                if (fis.available()<1000){
                    fis.close();
                    throw new DownloadException();
                }
            }
            catch (IOException e){
                System.out.println("incorrect file name");
            }
            catch (DownloadException de){
                de.printStackTrace();
                b = false;
            }
        }
    }

    public static class DownloadException extends Exception {
    }
}