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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: A = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: I = None
        self.y: D = None
        self.r: I = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: A = None
        self.p: F = None
        self.w: E = None
        self.r: A = None
        self.y: D = None
        self.v: H = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: A = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: I = None
        self.y: D = None
        self.r: I = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: A = None
        self.p: F = None
        self.w: E = None
        self.r: A = None
        self.y: D = None
        self.v: H = None
        self.t: F = None
        self.txt = txt

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

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