Petya has several coins in his pocket. If Petya randomly pulls out 3 coins from his pocket, there will definitely be a "1 ruble" coin among them. If Petya randomly pulls out 4 coins from his pocket, there will definitely be a "2 ruble" coin among them. Petya pulled out 5 coins from his pocket. Name these coins.

#
Since among any three coins there is definitely a coin of "1 ruble", it means that there are no more than two coins of other denominations. That is, all Petya's coins, except possibly two, are "1 ruble" coins. Since among any four coins there is definitely a coin of "2 rubles", it means that coins other than "2 rubles" do not exceed three. That is, all Petya's coins, except possibly three, are "2 ruble" coins. Therefore, among the 5 coins drawn, there must be 3 "1 ruble" coins (other coins can be no more than two) and 2 "2 ruble" coins (other coins can be no more than three). But 2+3=5, which means all the coins are named: three one-ruble coins and two two-ruble coins. Note that we have determined (though not required by the problem statement) how many coins of each type were in Petya's pocket: these are exactly the five named coins. Indeed, such a set of coins must be present in the pocket (since Petya drew this set). On the other hand, adding any other coin to this set ("1 ruble", "2 rubles", or any other) allows for the possibility of drawing a set of 5 coins from the pocket that is different from the one found (by replacing the "additional" coin with one of the non-matching coins from the "correct" set). Therefore, no other coins, besides the five named ones, could be in Petya's pocket according to the conditions of the problem.

## Answer

"1 ruble", "1 ruble", "1 ruble", "2 rubles", "2 rubles".