노트북 1500000
노트북 - 1500000원
class Product: def __init__(self, name, price): self.name = name self.price = price def __str__(self): return f'{self.name} - {self.price}원' parts = input().split() p = Product(parts[0], int(parts[1])) print(p)