#include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define fr first
#define sc second
#define el '\n'
#define ll long long
using namespace std;
const int N = 2e5 + 5;
void solve()
{
int n; cin >> n;
vector<int> nums(n), odd_numbers;
for (auto& i : nums)
{
cin >> i;
if (i & 1)
odd_numbers.push_back(i);
}
map<string, int> mp;
for (auto& i : nums)
mp[to_string(i)]++;
vector<pair<string, int>> repeated;
for (auto& it : mp)
if (it.sc > 1)
repeated.push_back(it);
string largest = "";
for (auto it = mp.rbegin(); it != mp.rend(); it++)
{
for (int i = 0; i < it->sc; i++)
largest += it->fr;
}
cout << "odd numbers: " << el;
for (auto& i : odd_numbers)
cout << i << ' ';
cout << el << "Repeated numbers: " << el;
for (auto& i : repeated)
cout << "( " << i.fr << " : " << i.sc << " ) ";
cout << el << "Largest number: " << el << largest << el;
}
int32_t main() {
fast;
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
int t = 1;
// cin >> t;
for (int cs = 1; cs <= t; cs++) {
solve();
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNkZWZpbmUgZmFzdCBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApO2Npbi50aWUoMCk7Y291dC50aWUoMCkKI2RlZmluZSBhbGwoeCkgeC5iZWdpbigpLCB4LmVuZCgpCiNkZWZpbmUgcmFsbCh4KSB4LnJiZWdpbigpLCB4LnJlbmQoKQojZGVmaW5lIGZyIGZpcnN0CiNkZWZpbmUgc2Mgc2Vjb25kCiNkZWZpbmUgZWwgJ1xuJwojZGVmaW5lIGxsIGxvbmcgbG9uZyAKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKY29uc3QgaW50IE4gPSAyZTUgKyA1Owp2b2lkIHNvbHZlKCkKewogICAgaW50IG47IGNpbiA+PiBuOwogICAgdmVjdG9yPGludD4gbnVtcy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