#include #include #include #include #include using namespace std; //ifstream F("p.in"); //ofstream G("p.out"); #define F cin #define G cout const int size = 110; int n,m,j; string a; map mp; char str[size]; string sc(char ch) { string act = ""; act += ch; return act; } bool cif(char x) { if ( x >= '1' && x <= '5' ) return 1; return 0; } void solve(string a) { if ( a.size() == 2 ) { if ( a[0] == '%' && a[1] == 's' && (!(j+1 >= m)) ) { G<= m)) ) { string now = mp[sc(str[j+1])]; j += 2; while ( now.size() < a[1]-'0' ) { string now2 = " "; for (int k=0;k= m)) ) { string now = mp[sc(str[j+1])]; j += 2; string b = ""; int i = 0; for (i=0;i= now.size() ) c += '0'; else c += now[i++]; } G<<'.'<>n; for (int i=1;i<=n;++i) { F>>a; string s[2]; int w = 0; for (size_t j=0;j