Y16's Cake!

2.9

21 votes
Very-Easy
Problem

Y16's Fresher is near and they are asked to arrive in pairs (Male-Female only) for the couple dance.

The Problem is the number of boys and girls are not equal. Your task is to find out the total number of couples that can be formed.

Input:

First line of input contains an integer X denoting the number of boys.

Second line of input contains another integer Y denoting the number of girls.

Output:

Output the number of couples that can be formed.

Constraints:

1X,Y100

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?