class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: B = None
        self.w: B = None
        self.v: B = None
        self.z: C = None
        self.t: B = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: A = None
        self.w: A = None
        self.p: C = None
        self.z: C = None
        self.txt = txt

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

h = A("h")
j = B("j")
l = C("l")
n = D("n")
c = E("c")
e = F("e")
i = G("i")
a = H("a")
g = H("g")
k = B("k")

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

class B:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: B = None
        self.w: B = None
        self.v: B = None
        self.z: C = None
        self.t: B = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: A = None
        self.w: A = None
        self.p: C = None
        self.z: C = None
        self.txt = txt

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

h = A("h")
j = B("j")
l = C("l")
n = D("n")
c = E("c")
e = F("e")
i = G("i")
a = H("a")
g = H("g")
k = B("k")

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