class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: F = None
        self.r: E = None
        self.x: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: A = None
        self.q: C = None
        self.u: G = None
        self.w: D = None
        self.z: G = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: B = None
        self.u: G = None
        self.v: D = None
        self.o: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: F = None
        self.r: E = None
        self.x: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: A = None
        self.q: C = None
        self.u: G = None
        self.w: D = None
        self.z: G = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: B = None
        self.u: G = None
        self.v: D = None
        self.o: F = None
        self.txt = txt

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

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