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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: H = None
        self.t: E = None
        self.o: D = None
        self.x: D = None
        self.v: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: H = None
        self.t: E = None
        self.o: D = None
        self.x: D = None
        self.v: G = None
        self.txt = txt

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

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