#include<iostream> #include<cstdio> using namespace std; int main() { int a, b, c, d; int z, x, n, v; scanf("%d.%d.%d.%d",&a,&b,&c,&d); scanf("%d.%d.%d.%d", &z, &x, &n, &v); int k = a&z,l=b&x,m=c&n,o=d&v cout << dec << k<< "." << l << "." << m << "." << o << endl; return 0; }
13 total views, no views today