class Input:
    is_imported = False
    quantity = 0
    price = 0
    item = None

    def __init__(self, sentence: str):
        self._parse(sentence)

    def _parse(self, sentence: str):
        self.is_imported = 'imported' in sentence
        arr = sentence.split(' ')
        self.quantity = int(arr[0])
        self.price = float(arr[-1])
        self.item = ' '.join(arr[1:-2]).replace('imported', '').strip()
