Problem1842--小帅买包子(20分)

1842: 小帅买包子(20分)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

小帅身上有abc分钱,包子需要def分钱,请问小帅最多能买几个包子?

Input

多组样例,每个测试样例一行,输入六个用空格分隔的整数,分别表示 a bcdef

a bcdef≤10000cde不同时为0

Output

对于每个测试实例,每行输出一个整数,表示这次小帅最多能买几个包子填肚子

Sample Input Copy

6 4 2 3 2 1
0 0 1 0 0 5

Sample Output Copy

2
0

Source/Category