#include<iostream>
#include<cstdlib>
#include<fstream>
using namespace std;
void read(const char *filename,int &n,int &s){
ifstream fin(filename);
char c;
//int n,s;
while(fin.peek()!=EOF){
fin>>c;
switch(c){
case'n':
fin>>n;
break;
case's':
fin>>s;
break;
default:
break;
}
}
fin.close();
}
void printf(int &n,int &s){
cout<<"n: "<<n<<"s: "<<s<<endl;
}
int main(){
int n,s;
read("a.txt",n,s);
printf(n,s);
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGNzdGRsaWI+CiNpbmNsdWRlPGZzdHJlYW0+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCByZWFkKGNvbnN0IGNoYXIgKmZpbGVuYW1lLGludCAmbixpbnQgJnMpewppZnN0cmVhbSBmaW4oZmlsZW5hbWUpOwpjaGFyIGM7Ci8vaW50IG4sczsKICAgIHdoaWxlKGZpbi5wZWVrKCkhPUVPRil7CiAgICAgICAgZmluPj5jOwogICAgICAgICAgICBzd2l0Y2goYyl7CiAgICAgICAgICAgICAgICBjYXNlJ24nOgogICAgICAgICAgICAgICAgICAgIGZpbj4+bjsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSdzJzoKICAgICAgICAgICAgICAgICAgICBmaW4+PnM7CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgIGJyZWFrOwoKICAgICAgICAgICAgfQogICAgfQpmaW4uY2xvc2UoKTsKfQoKdm9pZCBwcmludGYoaW50ICZuLGludCAmcyl7Cgpjb3V0PDwibjogIjw8bjw8InM6ICI8PHM8PGVuZGw7Cn0KCmludCBtYWluKCl7CmludCBuLHM7CgpyZWFkKCJhLnR4dCIsbixzKTsKCnByaW50ZihuLHMpOwoKcmV0dXJuIDA7Cn0K