# class MoneyBox:
#     def __init__(self, capacity):
#         self.count = 0
#         self.capacity = capacity
#
#     def can_add(self, v):
#         return self.count + v <= self.capacity
#
#     def add(self, v):
#         if self.can_add(v):
#             self.count += v
#
#
# x = MoneyBox(5)
# x.add(6)
# print(x.count) 

# if __name__ == '__main__':
#     main()
