import java.io.*;

class InfoFichier {
  public static void main(String[] args) throws IOException {
    info(args[0]);
  }

  static void info(String nom) throws FileNotFoundException {
    File f = new File(nom);
    if (!f.exists()){
      throw new FileNotFoundException();
    }
    System.out.println(f.getName());
    System.out.println(f.isDirectory());
    System.out.println(f.canRead());
    System.out.println(f.canWrite());
    System.out.println(f.length());
  }
}

