#2980. 鸡兔同笼(拓展21-一只蛐蛐6条腿,一只蜘蛛8条腿,蛐蛐和蜘蛛共8只,54条腿,蛐蛐和蜘蛛各几只?)

鸡兔同笼(拓展21-一只蛐蛐6条腿,一只蜘蛛8条腿,蛐蛐和蜘蛛共8只,54条腿,蛐蛐和蜘蛛各几只?)

Background

Description

一只蛐蛐6条腿,一只蜘蛛8条腿,蛐蛐和蜘蛛共8只,54条腿,蛐蛐和蜘蛛各几只?

Format

Input

Output

Samples


5 3

Limitation

1s, 1024KiB for each test case.

Statistics

Related

In following contests:

鸡兔同笼(不同的题型)