class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: H = None
        self.q: D = None
        self.u: E = None
        self.z: F = None
        self.y: D = None
        self.o: A = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: A = None
        self.s: B = None
        self.v: H = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: C = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: C = None
        self.u: H = None
        self.y: C = None
        self.w: C = None
        self.q: B = None
        self.t: A = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: C = None
        self.x: F = None
        self.q: H = None
        self.w: C = None
        self.txt = txt

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

g = A("g")
b = B("b")
i = C("i")
m = D("m")
k = E("k")
j = F("j")
e = G("e")
f = H("f")

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: H = None
        self.q: D = None
        self.u: E = None
        self.z: F = None
        self.y: D = None
        self.o: A = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: A = None
        self.s: B = None
        self.v: H = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: C = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: C = None
        self.u: H = None
        self.y: C = None
        self.w: C = None
        self.q: B = None
        self.t: A = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: C = None
        self.x: F = None
        self.q: H = None
        self.w: C = None
        self.txt = txt

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

g = A("g")
b = B("b")
i = C("i")
m = D("m")
k = E("k")
j = F("j")
e = G("e")
f = H("f")

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