/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

abstract class Student {
   String name; int standard;

   abstract void getPercentage();
   static void getTotalNoOfStudents() {}

   public Student() {}
   public Student(String name, int standard) {
     this.name=name; this.standard=standard;
   }
}

class ScienceStudent extends Student {
   int ScienceMarks; 
   public static int noOfStudents=0;

   public ScienceStudent(String name, int standard, int ScienceMarks) {
       super(name, standard);
       this.ScienceMarks=ScienceMarks;
   }

   public void getPercentage() {
     System.out.println(10000/ScienceMarks);
   }
}

class HistoryStudent extends Student {
   int historyMarks;
   public static int noOfStudents;

   public HistoryStudent(String name, int standard, int historyMarks) {
      super(name, standard);
      this.historyMarks=historyMarks;
   }

   public void getPercentage() {
      System.out.println(10000/historyMarks);
   }
}

class AllStudent {
   public static void main(String[] args) {

   ScienceStudent abhi = new ScienceStudent("Abhishek",2,95);
   HistoryStudent raj = new HistoryStudent("Rajath",2,80);
   abhi.getPercentage();
   raj.getPercentage();
   }
}