CF1313B Different Rules

题目描述

## 题意简述 一项奥林匹克竞赛有着与普通竞赛不同的规则,它分成两轮,假如一位参赛者在第一轮中排名第 $x$ 名,在第二轮中排名第 $y$ 名,则他的总分是 $x+y$,他的总排名是总分小于等于 $x+y$ 的参赛者(包括他自己)。需要注意的是,每一轮比赛都不会出现并列的情况,每一个排名 $i$ 都对应了唯一的参赛者。 尼古拉被告知他第一轮排名第 $x$ ,第二轮排名第 $y$ ,他需要你帮助他算出他可能获得的最好总排名和最差总排名

输入格式

输出格式

说明/提示

Explanation for the first example: Suppose there were 5 participants A-E. Let's denote Nikolay as A. The the most favorable results for Nikolay could look as follows: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF1313B/872ae8abe0092cf9c803f2ce5c9d62856c59786d.png)However, the results of the Olympiad could also look like this: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF1313B/4e8a21f342219fd22fa5c953b246140cf0a5e36a.png)In the first case Nikolay would have taken first place, and in the second — third place.