import java.util.Scanner;

/**
 * 测试方法
 */


public class Method {
    /*
//定义方法
    public static void loveU(int num){//形参
     System.out.println("I love U!");
        System.out.println("我爱你!");
        System.out.println("520!"+"\t"+num+"年");
}


    public static void main(String[] args) {
        for(int i =0;i<100;i++) {
            //调用方法
            loveU(1);//实参
        }
    }
     */
    /*
    public static int add(int a, int b, int c){
        int sum = a+b+c;
        return sum;
    }

    public static void main(String[] args) {
       int s= 1+add (100,200,300);
        System.out.println(s);
    }

     */

    public static  int late(int lateminute,double gongzi){

        int fakuan =0;//罚款

        if(lateminute<11){
            System.out.println("警告!!不能迟到!");
        }else if(lateminute<21){
            fakuan=100;

        }else if (lateminute<31){
            fakuan=200;
        }else if (lateminute<61){
            fakuan =(int)(gongzi/(21.75*2));//半日工资,21.75指月平均工作日
        }else {
            fakuan =(int)(gongzi*3/(21.75));
        }
        System.out.println("迟到时间"+lateminute+"罚款:"+fakuan);
        return fakuan;
    }

    public static void main(String[] args) {

        Scanner scanner =new Scanner(System.in);
        System.out.println("输入迟到时间(分钟)");
        int i= scanner.nextInt();
        System.out.println("输入工资");
        int j= scanner.nextInt();

        late(i,j);
    }
}