class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: G = None
        self.q: B = None
        self.x: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: G = None
        self.x: I = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: G = None
        self.z: H = None
        self.p: A = None
        self.q: C = None
        self.y: H = None
        self.o: H = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: F = None
        self.p: G = None
        self.o: G = None
        self.q: B = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: G = None
        self.x: I = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: G = None
        self.z: H = None
        self.p: A = None
        self.q: C = None
        self.y: H = None
        self.o: H = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: F = None
        self.p: G = None
        self.o: G = None
        self.q: B = None
        self.u: B = None
        self.txt = txt

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

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

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