#include<iostream> #include<algorithm> using namespace std; int main() { string s; getline(cin, s); char a = 0; cin >> a; int num = 0; for(int i = 0; i < s.length(); i++) { if(s[i] == a) { num++; } else if(int...