SaveText.Ru

Без имени
  1. lemons = int(input())
  2. apples = int(input()) // 2
  3. pears = int(input()) // 4
  4. fruits = 0
  5.  
  6. if lemons > 0 and apples > 0 and pears > 0:
  7.     while lemons > 0 and apples > 0 and pears > 0:
  8.         if lemons > 0 and apples > 0 and pears > 0:
  9.             fruits += 7
  10.             lemons -= 1
  11.             apples -= 1
  12.             pears -= 1
  13.            
  14.     print(fruits)
  15. else:
  16.     print(0)

Share with your friends:

Print