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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: A = None
        self.x: A = None
        self.t: I = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.y: G = None
        self.r: I = None
        self.x: B = None
        self.p: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: C = None
        self.x: H = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: A = None
        self.x: A = None
        self.t: I = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.y: G = None
        self.r: I = None
        self.x: B = None
        self.p: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: C = None
        self.x: H = None
        self.v: E = None
        self.txt = txt

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

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

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

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