class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: E = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: E = None
        self.z: C = None
        self.v: B = None
        self.w: B = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: H = None
        self.r: D = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: G = None
        self.z: E = None
        self.u: A = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: D = None
        self.p: E = None
        self.w: D = None
        self.y: B = None
        self.o: G = None
        self.r: E = None
        self.u: F = None
        self.txt = txt

b = A("b")
h = B("h")
e = C("e")
d = D("d")
k = E("k")
g = F("g")
f = G("f")
c = H("c")
m = A("m")
j = C("j")

b.w = h
b.z = k
b.s = d
h.s = c
h.u = f
e.o = j
e.z = j
e.p = k
e.s = k
e.v = h
e.w = h
d.v = g
k.t = c
k.y = c
k.r = d
k.z = d
g.r = j
g.w = f
g.z = k
g.s = k
g.u = m
f.r = k
c.v = b
c.s = d
c.w = d
c.p = k
c.r = k
c.y = h
c.o = f
c.u = g
m.w = h
m.z = k
m.s = d
j.o = e
j.z = e
j.p = k
j.s = k
j.v = h
j.w = h
assert k.r.v.w.r.z.v.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: E = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: E = None
        self.z: C = None
        self.v: B = None
        self.w: B = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: H = None
        self.r: D = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: G = None
        self.z: E = None
        self.u: A = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: D = None
        self.p: E = None
        self.w: D = None
        self.y: B = None
        self.o: G = None
        self.r: E = None
        self.u: F = None
        self.txt = txt

b = A("b")
h = B("h")
e = C("e")
d = D("d")
k = E("k")
g = F("g")
f = G("f")
c = H("c")
m = A("m")
j = C("j")

b.w = h
b.z = k
b.s = d
h.s = c
h.u = f
e.o = j
e.z = j
e.p = k
e.s = k
e.v = h
e.w = h
d.v = g
k.t = c
k.y = c
k.r = d
k.z = d
g.r = j
g.w = f
g.z = k
g.s = k
g.u = m
f.r = k
c.v = b
c.s = d
c.w = d
c.p = k
c.r = k
c.y = h
c.o = f
c.u = g
m.w = h
m.z = k
m.s = d
j.o = e
j.z = e
j.p = k
j.s = k
j.v = h
j.w = h
assert k.r.v.w.r.z.v.txt == "g"