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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: F = None
        self.o: A = None
        self.t: C = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: F = None
        self.v: E = None
        self.p: A = None
        self.u: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: D = None
        self.z: F = None
        self.v: B = None
        self.o: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: F = None
        self.o: A = None
        self.t: C = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: F = None
        self.v: E = None
        self.p: A = None
        self.u: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: D = None
        self.z: F = None
        self.v: B = None
        self.o: D = None
        self.txt = txt

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

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