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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.v: E = None
        self.s: F = None
        self.r: A = None
        self.o: A = None
        self.z: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: C = None
        self.x: A = None
        self.z: B = None
        self.y: B = None
        self.v: B = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: A = None
        self.s: C = None
        self.u: B = None
        self.p: A = None
        self.q: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.v: E = None
        self.s: F = None
        self.r: A = None
        self.o: A = None
        self.z: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: C = None
        self.x: A = None
        self.z: B = None
        self.y: B = None
        self.v: B = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: A = None
        self.s: C = None
        self.u: B = None
        self.p: A = None
        self.q: E = None
        self.txt = txt

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

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

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

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