class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: I = None
        self.z: I = None
        self.w: F = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: D = None
        self.s: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: F = None
        self.x: E = None
        self.w: B = None
        self.p: F = None
        self.o: H = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: G = None
        self.z: D = None
        self.u: A = None
        self.p: F = None
        self.t: I = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: B = None
        self.s: F = None
        self.t: C = None
        self.u: D = None
        self.w: G = None
        self.p: D = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: D = None
        self.s: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: F = None
        self.x: E = None
        self.w: B = None
        self.p: F = None
        self.o: H = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: G = None
        self.z: D = None
        self.u: A = None
        self.p: F = None
        self.t: I = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: B = None
        self.s: F = None
        self.t: C = None
        self.u: D = None
        self.w: G = None
        self.p: D = None
        self.v: D = None
        self.txt = txt

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

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