#include <iostream>
using namespace std;
string id;
int val[17] = {7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2};
char mp[11] = {'1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'};
bool check(string s)
{
if (s.size() != 18) return false;
int c = 0;
for (int i = ...