class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: E = None
        self.o: B = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: D = None
        self.v: A = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: D = None
        self.y: G = None
        self.t: H = None
        self.w: I = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: A = None
        self.z: J = None
        self.v: E = None
        self.q: I = None
        self.s: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: D = None
        self.v: A = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: D = None
        self.y: G = None
        self.t: H = None
        self.w: I = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: A = None
        self.z: J = None
        self.v: E = None
        self.q: I = None
        self.s: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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