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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: I = None
        self.y: G = None
        self.s: H = None
        self.x: A = None
        self.u: A = None
        self.w: B = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: C = None
        self.o: C = None
        self.w: A = None
        self.v: C = None
        self.x: G = None
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: A = None
        self.x: C = None
        self.p: D = None
        self.t: G = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: I = None
        self.v: G = None
        self.w: B = None
        self.o: B = None
        self.p: C = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: C = None
        self.t: F = None
        self.y: C = None
        self.s: C = None
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: I = None
        self.y: G = None
        self.s: H = None
        self.x: A = None
        self.u: A = None
        self.w: B = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: C = None
        self.o: C = None
        self.w: A = None
        self.v: C = None
        self.x: G = None
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: A = None
        self.x: C = None
        self.p: D = None
        self.t: G = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: I = None
        self.v: G = None
        self.w: B = None
        self.o: B = None
        self.p: C = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: C = None
        self.t: F = None
        self.y: C = None
        self.s: C = None
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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