d = dict()


class employee:
    def input(self):
        self.name = input("enter emp name\n")
        self.address = input("enter address\n")
        self.pan = input("enter pan details\n")
        self.basic = int(input("enter basic salary\n"))
        self.tds = int(input("enter tds\n"))
        self.deduct = int(input("enter deductions\n"))
        self.hra = 1.25*self.basic
        self.da = 0.25*self.basic
        self.gross_sal = self.basic+self.hra+self.da
        self.net_pay = self.gross_sal-self.deduct
        self.update()

    def update(self):
        d.update({self.name: {
            "name": self.name,
            "address": self.address,
            "pan": self.pan,
            "basic": self.basic,
            "tds": self.tds,
            "deduct": self.deduct,
            "hra": self.hra,
            "da": self.da,
            "gross_sal": self.gross_sal,
            "net_pay": self.net_pay
        }})

    def search(self, name):
        flag = 0
        for key in d:
            if key == name:
                print("employee found")
                for i in d[key]:
                    print(i, d[key][i])
                    flag = 1
        if flag == 0:
            print("no record found")

    def printemp(self):
        for key in d:
            print(key, d[key])


class employee1(employee):
    em = employee()
    while True:
        ch = int(input(
            "\n 1 to add employee or employees \n 2 - print all employees \n 3 - find an employee by name \n 0-exit \n"))
        if ch == 1:
            em.input()
        elif ch == 2:
            em.printemp()
        elif ch == 3:
            name = input("enter the name of the employee to be searched")
            em.search(name)

        elif ch == 0:
            break
    print("thank you for using employee mangement system")

39d4a82fcadeebadbc5e393f6e2750d3acd3b937
<mask token>


class employee:
    <mask token>
    <mask token>

    def search(self, name):
        flag = 0
        for key in d:
            if key == name:
                print('employee found')
                for i in d[key]:
                    print(i, d[key][i])
                    flag = 1
        if flag == 0:
            print('no record found')
    <mask token>


class employee1(employee):
    em = employee()
    while True:
        ch = int(input(
            """
 1 to add employee or employees 
 2 - print all employees 
 3 - find an employee by name 
 0-exit 
"""
            ))
        if ch == 1:
            em.input()
        elif ch == 2:
            em.printemp()
        elif ch == 3:
            name = input('enter the name of the employee to be searched')
            em.search(name)
        elif ch == 0:
            break
    print('thank you for using employee mangement system')

<mask token>


class employee:

    def input(self):
        self.name = input('enter emp name\n')
        self.address = input('enter address\n')
        self.pan = input('enter pan details\n')
        self.basic = int(input('enter basic salary\n'))
        self.tds = int(input('enter tds\n'))
        self.deduct = int(input('enter deductions\n'))
        self.hra = 1.25 * self.basic
        self.da = 0.25 * self.basic
        self.gross_sal = self.basic + self.hra + self.da
        self.net_pay = self.gross_sal - self.deduct
        self.update()
    <mask token>

    def search(self, name):
        flag = 0
        for key in d:
            if key == name:
                print('employee found')
                for i in d[key]:
                    print(i, d[key][i])
                    flag = 1
        if flag == 0:
            print('no record found')
    <mask token>


class employee1(employee):
    em = employee()
    while True:
        ch = int(input(
            """
 1 to add employee or employees 
 2 - print all employees 
 3 - find an employee by name 
 0-exit 
"""
            ))
        if ch == 1:
            em.input()
        elif ch == 2:
            em.printemp()
        elif ch == 3:
            name = input('enter the name of the employee to be searched')
            em.search(name)
        elif ch == 0:
            break
    print('thank you for using employee mangement system')

<mask token>


class employee:

    def input(self):
        self.name = input('enter emp name\n')
        self.address = input('enter address\n')
        self.pan = input('enter pan details\n')
        self.basic = int(input('enter basic salary\n'))
        self.tds = int(input('enter tds\n'))
        self.deduct = int(input('enter deductions\n'))
        self.hra = 1.25 * self.basic
        self.da = 0.25 * self.basic
        self.gross_sal = self.basic + self.hra + self.da
        self.net_pay = self.gross_sal - self.deduct
        self.update()
    <mask token>

    def search(self, name):
        flag = 0
        for key in d:
            if key == name:
                print('employee found')
                for i in d[key]:
                    print(i, d[key][i])
                    flag = 1
        if flag == 0:
            print('no record found')

    def printemp(self):
        for key in d:
            print(key, d[key])


class employee1(employee):
    em = employee()
    while True:
        ch = int(input(
            """
 1 to add employee or employees 
 2 - print all employees 
 3 - find an employee by name 
 0-exit 
"""
            ))
        if ch == 1:
            em.input()
        elif ch == 2:
            em.printemp()
        elif ch == 3:
            name = input('enter the name of the employee to be searched')
            em.search(name)
        elif ch == 0:
            break
    print('thank you for using employee mangement system')

d = dict()


class employee:

    def input(self):
        self.name = input('enter emp name\n')
        self.address = input('enter address\n')
        self.pan = input('enter pan details\n')
        self.basic = int(input('enter basic salary\n'))
        self.tds = int(input('enter tds\n'))
        self.deduct = int(input('enter deductions\n'))
        self.hra = 1.25 * self.basic
        self.da = 0.25 * self.basic
        self.gross_sal = self.basic + self.hra + self.da
        self.net_pay = self.gross_sal - self.deduct
        self.update()

    def update(self):
        d.update({self.name: {'name': self.name, 'address': self.address,
            'pan': self.pan, 'basic': self.basic, 'tds': self.tds, 'deduct':
            self.deduct, 'hra': self.hra, 'da': self.da, 'gross_sal': self.
            gross_sal, 'net_pay': self.net_pay}})

    def search(self, name):
        flag = 0
        for key in d:
            if key == name:
                print('employee found')
                for i in d[key]:
                    print(i, d[key][i])
                    flag = 1
        if flag == 0:
            print('no record found')

    def printemp(self):
        for key in d:
            print(key, d[key])


class employee1(employee):
    em = employee()
    while True:
        ch = int(input(
            """
 1 to add employee or employees 
 2 - print all employees 
 3 - find an employee by name 
 0-exit 
"""
            ))
        if ch == 1:
            em.input()
        elif ch == 2:
            em.printemp()
        elif ch == 3:
            name = input('enter the name of the employee to be searched')
            em.search(name)
        elif ch == 0:
            break
    print('thank you for using employee mangement system')

d = dict()


class employee:
    def input(self):
        self.name = input("enter emp name\n")
        self.address = input("enter address\n")
        self.pan = input("enter pan details\n")
        self.basic = int(input("enter basic salary\n"))
        self.tds = int(input("enter tds\n"))
        self.deduct = int(input("enter deductions\n"))
        self.hra = 1.25*self.basic
        self.da = 0.25*self.basic
        self.gross_sal = self.basic+self.hra+self.da
        self.net_pay = self.gross_sal-self.deduct
        self.update()

    def update(self):
        d.update({self.name: {
            "name": self.name,
            "address": self.address,
            "pan": self.pan,
            "basic": self.basic,
            "tds": self.tds,
            "deduct": self.deduct,
            "hra": self.hra,
            "da": self.da,
            "gross_sal": self.gross_sal,
            "net_pay": self.net_pay
        }})

    def search(self, name):
        flag = 0
        for key in d:
            if key == name:
                print("employee found")
                for i in d[key]:
                    print(i, d[key][i])
                    flag = 1
        if flag == 0:
            print("no record found")

    def printemp(self):
        for key in d:
            print(key, d[key])


class employee1(employee):
    em = employee()
    while True:
        ch = int(input(
            "\n 1 to add employee or employees \n 2 - print all employees \n 3 - find an employee by name \n 0-exit \n"))
        if ch == 1:
            em.input()
        elif ch == 2:
            em.printemp()
        elif ch == 3:
            name = input("enter the name of the employee to be searched")
            em.search(name)

        elif ch == 0:
            break
    print("thank you for using employee mangement system")
