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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: C = None
        self.x: H = None
        self.t: E = None
        self.o: F = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

e = A("e")
m = B("m")
k = C("k")
i = D("i")
d = E("d")
n = F("n")
j = G("j")
a = H("a")
c = G("c")
b = A("b")

e.w = m
e.s = m
e.p = d
e.z = b
e.u = b
e.r = n
m.w = k
m.u = k
m.x = a
m.t = d
m.o = n
m.y = n
k.y = e
i.t = b
d.s = n
d.x = i
d.r = e
n.u = a
j.p = n
j.s = n
j.t = a
j.w = c
j.u = k
j.o = i
j.v = m
a.x = e
a.r = e
a.y = c
a.v = i
a.s = n
a.w = d
a.t = d
c.p = n
c.s = n
c.t = a
c.w = j
c.u = k
c.o = i
c.v = m
b.w = m
b.s = m
b.p = d
b.z = e
b.u = e
b.r = n
assert c.u.y.z.z.p.r.p.x.t.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: E = None
        self.s: B = None
        self.z: A = None
        self.r: F = None
        self.u: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: C = None
        self.x: H = None
        self.t: E = None
        self.o: F = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

e = A("e")
m = B("m")
k = C("k")
i = D("i")
d = E("d")
n = F("n")
j = G("j")
a = H("a")
c = G("c")
b = A("b")

e.w = m
e.s = m
e.p = d
e.z = b
e.u = b
e.r = n
m.w = k
m.u = k
m.x = a
m.t = d
m.o = n
m.y = n
k.y = e
i.t = b
d.s = n
d.x = i
d.r = e
n.u = a
j.p = n
j.s = n
j.t = a
j.w = c
j.u = k
j.o = i
j.v = m
a.x = e
a.r = e
a.y = c
a.v = i
a.s = n
a.w = d
a.t = d
c.p = n
c.s = n
c.t = a
c.w = j
c.u = k
c.o = i
c.v = m
b.w = m
b.s = m
b.p = d
b.z = e
b.u = e
b.r = n
assert c.u.y.z.z.p.r.p.x.t.txt == "b"