2 5
1 2 2 The cakes are in the following order: $(1,1,1),(1,1,2),(1,2,1),(2,1,1),(1,2,2),(2,1,2),(2,2,1),(2,2,2)$. Here, each triple of integers represents the beauty, taste, and popularity of a cake.
1000000 1000000000000000000
1000000 1000000 1000000 The values in input may be large.
9 47
3 1 4
{
"problem": {
"name": "Patisserie ABC 2",
"description": {
"content": "Takahashi, a pastry chef at _ABC Confiserie_, has decided to make cakes to celebrate AtCoder Beginner Contest 200. A cake made by Takahashi has three parameters: _beauty_, _taste_, and _popularity_, e",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc200_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Takahashi, a pastry chef at _ABC Confiserie_, has decided to make cakes to celebrate AtCoder Beginner Contest 200.\nA cake made by Takahashi has three parameters: _beauty_, _taste_, and _popularity_, e...",
"is_translate": false,
"language": "English"
}
]
}