#define A(c,a,b) t=b;t+=a;_(c)
#define	B(b,a) P(u,a)t=0;t-=a;R t+=u;t+=1;t/=2;_(b)
#define b(x) x(g)
#define C ;main(argc,argv)char**argv;{for(;!w;){q=0;l
#define c(y) x
#define D(c,a,b) t=a;t/=b;_(c)
#define d(x) S(x,x,1)
#define E(a,d) t=d;t-=p;t*=r;t*=a;p+=t;t=1;t-=a;r*=t;
#define e(x) y
#define f(x) x(e)
#define G(x,y) Q(x,atoi(argv[y]))
#define g(x) x(b)
#define H Q(w,1)Q(p,0)r=0;
#define h(x) x(c)
#define i(c,a,b) a(b,b,c)
#define J(x) Q(p,x)r=0;
#define j(x) Q(f(g),x)
#define K(x) Q(x,argc)
#define k(x) S(a,y,x)
#define L(x) u=p;u-=x;t=u;t*=u;R r+=2;r-=t;r/=2;
#define l L(q) q+=1;
#define M(c,a,b) t=a;t*=b;_(c)
#define m(x) x(a,a)
#define n(x) x(a,y)
#define O(c,a,b) t=b;t+=1;t+=a;t/=2;Q(c,t)
#define o(x,y) M(x,x,y)
#define P(b,a) t=a;R _(b)
#define R t+=2047;t/=2048;t+=8191;t/=8192;
#define Q(a,b) t=b;_(a)
#define S(c,a,b) t=a;t-=b;_(c)
#define T }
#define U(c,a,b) u=b;t=b;t-=1;t*=r;t+=1;b=t;t=a;t/=b;b=u;_(c)
#define V int t,u,q,p=0,r,w=0,
#define X(y) printf("%x\n",y);
#define Z(a,d) t=p;t-=d;t*=a;t+=d;_(p)r*=a;
#define _(a) t-=a;t*=r;a+=t;

V a,x,y,s C

	    G(f(g),q)G(          g(h),2)n(B)Z(a,4)n(
	P)E(a,1)j(2989)H l k     (1)m(B)Z(a,6)l k(h(b))
      B(s,a             )m(P)        Z(s             ,8)E
    (a,q                   )Q(       s,h               (g)
   )Q(                               f(c                ),f
  (g)                                )j(                s)l
  i(b                                (h)                ,S,
 f(b                                 ))n               (B)
 E(a                                 ,2)             J(8)
l j(                                x)Q(x,1)l n(P)Z(a,8
)o(x                                ,g(f))d(f(e))J(5)l j
(x)l                                 d(x              )S(a
 ,x,                                 1)m                (B)
  Z(a                                ,10                 )U(
  a,y                                ,x)                 o(a
   ,x)                               k(a                 )m(
    P)E(                   a,7)      l j                (0)
      Q(s,1            )l D(a        ,x,              q)o(
	a,q)S(a,h(g),a)i(s,       M,a)i(a,A,g(f))i(q,D,x
	    )o(s,16)B(a          ,x)E(a,9)H l j(2766)H

T  X(b(f))  T
