#include using namespace std; int main(){ int n; cin>>n;string s[10001]; for(int i=0;i>s[i]; if(s[i].at(0)=='0'&&s[i].at(1)=='0'&&s[i].at(2)=='0'&&s[i].at(3)=='0'&&s[i].at(4)=='0') {cout<<"0"<