class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: H = None
        self.q: G = None
        self.x: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: B = None
        self.p: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: G = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: D = None
        self.y: E = None
        self.o: D = None
        self.r: B = None
        self.p: H = None
        self.w: D = None
        self.v: I = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: H = None
        self.o: F = None
        self.w: D = None
        self.v: H = None
        self.x: E = None
        self.t: I = None
        self.y: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: D = None
        self.z: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: B = None
        self.p: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: G = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: D = None
        self.y: E = None
        self.o: D = None
        self.r: B = None
        self.p: H = None
        self.w: D = None
        self.v: I = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: H = None
        self.o: F = None
        self.w: D = None
        self.v: H = None
        self.x: E = None
        self.t: I = None
        self.y: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: D = None
        self.z: C = None
        self.txt = txt

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

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