class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: B = None
        self.w: B = None
        self.p: C = None
        self.z: D = None
        self.r: C = None
        self.o: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: E = None
        self.o: A = None
        self.t: H = None
        self.p: F = None
        self.q: F = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: G = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: A = None
        self.q: A = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: F = None
        self.u: A = None
        self.o: A = None
        self.w: F = None
        self.txt = txt

c = A("c")
g = B("g")
j = C("j")
k = D("k")
a = E("a")
m = F("m")
l = G("l")
i = H("i")
b = C("b")

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: E = None
        self.o: A = None
        self.t: H = None
        self.p: F = None
        self.q: F = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: G = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: A = None
        self.q: A = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: F = None
        self.u: A = None
        self.o: A = None
        self.w: F = None
        self.txt = txt

c = A("c")
g = B("g")
j = C("j")
k = D("k")
a = E("a")
m = F("m")
l = G("l")
i = H("i")
b = C("b")

c.t = k
c.z = k
c.u = g
c.w = g
c.p = b
c.r = j
c.o = a
g.s = c
j.z = k
k.v = j
k.s = a
k.o = c
k.t = i
k.p = m
k.q = m
k.u = m
a.v = g
a.q = l
a.z = l
m.y = b
m.v = c
m.q = c
m.w = k
l.z = c
l.r = j
l.v = a
l.w = g
i.r = g
i.x = m
i.w = m
i.u = c
i.o = c
b.z = k
assert b.z.o.o.v.s.txt == "c"