class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: C = None
        self.x: G = None
        self.r: J = None
        self.z: F = None
        self.p: I = None
        self.o: C = None
        self.w: B = None
        self.q: G = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: C = None
        self.w: H = None
        self.r: F = None
        self.z: F = None
        self.y: E = None
        self.p: F = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: F = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: E = None
        self.z: A = None
        self.w: E = None
        self.x: B = None
        self.t: C = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: D = None
        self.o: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.r: E = None
        self.v: I = None
        self.z: E = None
        self.y: A = None
        self.u: C = None
        self.t: A = None
        self.q: F = None
        self.s: C = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: B = None
        self.t: B = None
        self.s: I = None
        self.v: A = None
        self.u: I = None
        self.y: F = None
        self.w: G = None
        self.q: G = None
        self.r: B = None
        self.txt = txt

b = A("b")
k = B("k")
g = C("g")
e = D("e")
l = E("l")
n = F("n")
c = G("c")
i = H("i")
d = I("d")
h = J("h")

b.y = h
b.r = h
b.s = g
b.o = g
b.x = c
b.q = c
b.z = n
b.u = n
b.p = d
b.w = k
k.x = g
k.v = g
k.w = i
k.r = n
k.z = n
k.p = n
k.y = l
k.o = b
g.y = n
g.w = n
g.r = l
e.p = h
e.y = l
e.w = l
e.z = b
e.x = k
e.t = g
e.r = i
l.q = d
l.s = e
n.v = d
c.r = n
c.v = e
c.o = h
i.o = d
i.v = d
i.r = l
i.z = l
i.y = b
i.t = b
i.u = g
i.s = g
i.q = n
i.w = n
d.t = e
h.x = c
h.w = c
h.q = c
h.p = k
h.t = k
h.r = k
h.s = d
h.u = d
h.v = b
h.y = n
assert e.w.s.t.w.v.t.y.q.txt == "
class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: C = None
        self.x: G = None
        self.r: J = None
        self.z: F = None
        self.p: I = None
        self.o: C = None
        self.w: B = None
        self.q: G = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: C = None
        self.w: H = None
        self.r: F = None
        self.z: F = None
        self.y: E = None
        self.p: F = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: F = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: E = None
        self.z: A = None
        self.w: E = None
        self.x: B = None
        self.t: C = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: D = None
        self.o: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.r: E = None
        self.v: I = None
        self.z: E = None
        self.y: A = None
        self.u: C = None
        self.t: A = None
        self.q: F = None
        self.s: C = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: B = None
        self.t: B = None
        self.s: I = None
        self.v: A = None
        self.u: I = None
        self.y: F = None
        self.w: G = None
        self.q: G = None
        self.r: B = None
        self.txt = txt

b = A("b")
k = B("k")
g = C("g")
e = D("e")
l = E("l")
n = F("n")
c = G("c")
i = H("i")
d = I("d")
h = J("h")

b.y = h
b.r = h
b.s = g
b.o = g
b.x = c
b.q = c
b.z = n
b.u = n
b.p = d
b.w = k
k.x = g
k.v = g
k.w = i
k.r = n
k.z = n
k.p = n
k.y = l
k.o = b
g.y = n
g.w = n
g.r = l
e.p = h
e.y = l
e.w = l
e.z = b
e.x = k
e.t = g
e.r = i
l.q = d
l.s = e
n.v = d
c.r = n
c.v = e
c.o = h
i.o = d
i.v = d
i.r = l
i.z = l
i.y = b
i.t = b
i.u = g
i.s = g
i.q = n
i.w = n
d.t = e
h.x = c
h.w = c
h.q = c
h.p = k
h.t = k
h.r = k
h.s = d
h.u = d
h.v = b
h.y = n
assert e.w.s.t.w.v.t.y.q.txt == "d"