Since today is March 8th, you will be preparing a bouquet of flowers. There are two kinds of flowers in your store. White and red flowers. Each bouquet must consist of 3 flowers, and the bouquet must contain both types of flowers.
If your store has n white and m red flowers, what is the maximum number of bouquets can you make?
Two integers n and m (0≤n,m≤5⋅105).
Print the maximum number of bouquets you can make.