Source Code
#include <bits/stdc++.h>
#define mod 1000000007
#define point complex<long double>
#define pi acos(-1)

typedef long long ll;
typedef long double ld;

using namespace std;

void Fastio()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
}

bool runTestCase() {
	string a; cin >> a;
	string t = "Atypical";
	map<char, int>mp1, mp2;
	for (auto &i : t) { if (i >= 'A' && i <= 'Z')i += ('a' - 'A'); mp1[i]++; }
	for (auto &i : a) { if (i >= 'A' && i <= 'Z')i += ('a' - 'A'); mp2[i]++; }
	for (auto i : t) {
		if (mp1[i] > mp2[i])
			return cout << "No\n", 0;
	}
	cout << "Yes\n";
	return 0;
}
int main()
{
	Fastio();
	int ttt = 1; //cin >> ttt;
	while (ttt--) {
		runTestCase();
	}

	return 0;
}
Copy
We Love Atypical 7eZb_ElNa7o
GNU G++17
0 ms
796 KB
Accepted