class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: C = None
        self.s: I = None
        self.r: G = None
        self.w: F = None
        self.y: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: C = None
        self.r: C = None
        self.o: E = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.p: F = None
        self.w: H = None
        self.v: F = None
        self.t: G = None
        self.z: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: C = None
        self.r: C = None
        self.o: E = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.p: F = None
        self.w: H = None
        self.v: F = None
        self.t: G = None
        self.z: G = None
        self.txt = txt

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

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