import std.stdio;int n=8,a,b;void f(int x){--n&&f(x%8/2+x/8);write(x%2);}void main(){scanf("%o,%o",&a,&b);f=a*b;}