import java.io.*;
class getprocess {
void computeGrossPay(double x) {
System.out.println();
System.out.println("the Grosspay is :"+x*5.65);
System.out.println();
System.out.println("The Net pay is : "+(((x*5.65)-(0.10*x)*5.65)));
System.out.println();
System.out.println("the tax deducted to item is :"+x*5.65*0.10);
}
public void computeGrossPay(double x,double y){
System.out.println();
System.out.println("the Grosspay is :"+x*y);
System.out.println();
System.out.println("the tax deducted to item is :"+x*y*0.10);
System.out.println();
System.out.println("The Net pay is : "+(((x*y)-(0.10*x)*y)));
}
void computeGrossPay(double w,double r,double t ) {
t=t/100;
System.out.println();
System.out.println("the Grosspay is :"+w*r);
System.out.println();
System.out.println("the tax deducted to item is :"+((w*r)*t));
System.out.println();
System.out.println("The Net pay is : "+(((w*r)-(t*w)*r)));
}
}
class process {
public static InputStreamReader reader = new InputStreamReader (System.in);
public static BufferedReader input = new BufferedReader(reader);
public static void main (String args[])throws Exception {
getprocess ob = new getprocess();
double w;
double r=0;
double t=0;
int hour;
System.out.println("Enter workhour :");
w=Double.parseDouble(input.readLine());
System.out.println();
System.out.println("Enter rate per hour :");
r=Double.parseDouble(input.readLine());
System.out.println();
System.out.println("Enter how many percent taxrate");
t=Double.parseDouble(input.readLine());
if (w!=0&&r!=0&&t!=0){
ob.computeGrossPay(w,r,t);
}else if(w!=0&&r!=0){
ob.computeGrossPay(w,r);
}else if(w!=0&&r==0&&t==0){
ob.computeGrossPay(w);
}
}
}