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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: I = None
        self.z: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: I = None
        self.u: G = None
        self.r: E = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: I = None
        self.z: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: I = None
        self.u: G = None
        self.r: E = None
        self.p: G = None
        self.txt = txt

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

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

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