#include using namespace std; long ans=1e15; main() { string s;cin>>s; for(;cin>>s;) { int k=0; for(int i=0;inow?now:ans; } cout<