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

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: C = None
        self.p: A = None
        self.x: B = None
        self.o: H = None
        self.t: C = None
        self.y: B = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: D = None
        self.o: F = None
        self.w: D = None
        self.x: G = None
        self.q: A = None
        self.u: G = None
        self.s: A = None
        self.z: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: H = None
        self.x: F = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: C = None
        self.y: A = None
        self.r: F = None
        self.p: C = None
        self.o: F = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: D = None
        self.v: C = None
        self.o: B = None
        self.q: D = None
        self.r: E = None
        self.txt = txt

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

g.s = k
g.o = l
g.x = l
g.q = j
g.r = n
k.u = g
f.u = h
f.z = b
f.s = l
a.q = k
a.x = k
a.y = k
a.w = f
a.t = f
a.s = f
a.p = g
a.o = b
h.p = g
h.u = i
j.y = f
j.t = a
j.w = a
j.o = n
j.z = n
j.x = i
j.u = i
j.q = g
j.s = g
i.r = l
i.q = b
i.x = n
i.o = n
b.w = i
b.v = f
b.p = f
b.y = g
b.r = n
b.o = n
b.u = n
l.p = a
l.y = a
l.q = a
l.v = f
l.o = k
l.r = h
n.y = f
n.t = a
n.w = a
n.o = j
n.z = j
n.x = i
n.u = i
n.q = g
n.s = g
assert l.v.s.v.z.w.r.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: I = None
        self.q: F = None
        self.r: F = None
        self.x: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: C = None
        self.p: A = None
        self.x: B = None
        self.o: H = None
        self.t: C = None
        self.y: B = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: D = None
        self.o: F = None
        self.w: D = None
        self.x: G = None
        self.q: A = None
        self.u: G = None
        self.s: A = None
        self.z: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: H = None
        self.x: F = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: C = None
        self.y: A = None
        self.r: F = None
        self.p: C = None
        self.o: F = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: D = None
        self.v: C = None
        self.o: B = None
        self.q: D = None
        self.r: E = None
        self.txt = txt

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

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