package com.javarush.task.task18.task1810;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
/*
DownloadException
*/
public class Solution {
public static void main(String[] args) throws DownloadException, IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
while (true) {
FileInputStream input = new FileInputStream(reader.readLine());
input.close();
if (input.available() < 1000) {
throw new DownloadException();
}
reader.close();
}
}
public static class DownloadException extends Exception {
}
}