#B4076. Dice Game Winning Numbers

    ID: 11733 Type: Default 1000ms 256MiB

Dice Game Winning Numbers

Dice Game Winning Numbers

Guangtouqiang, Bear1, and Bear2 are playing a dice game. The tablet provides three random numbers in the range \(1 \sim 6\), which are assigned to Bear1, Bear2, and Guangtouqiang respectively. The player with the largest number wins. Note that if Guangtouqiang's number is equal to any of the numbers of Bear1 or Bear2, he is still considered to have won.

Bear1 and Bear2 have already received their numbers. Your task is to determine all possible numbers that Guangtouqiang can obtain in order to win the game. In other words, you need to output all numbers \(x\) from 1 to 6 such that \(x \geq \max(a, b)\), where \(a\) and \(b\) are the numbers obtained by Bear1 and Bear2 respectively.

inputFormat

The input consists of two integers \(a\) and \(b\) (\(1 \leq a, b \leq 6\)), separated by spaces or newlines, representing the numbers obtained by Bear1 and Bear2 respectively.

outputFormat

Output all possible winning numbers for Guangtouqiang in increasing order, separated by a single space.

sample

3 4
4 5 6