class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: F = None
        self.p: E = None
        self.t: E = None
        self.u: F = None
        self.z: I = None
        self.o: B = None
        self.y: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: B = None
        self.w: H = None
        self.y: A = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: F = None
        self.y: E = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: H = None
        self.z: A = None
        self.t: C = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: E = None
        self.s: A = None
        self.x: I = None
        self.t: I = None
        self.p: C = None
        self.z: C = None
        self.o: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: B = None
        self.w: H = None
        self.y: A = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: F = None
        self.y: E = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: H = None
        self.z: A = None
        self.t: C = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: E = None
        self.s: A = None
        self.x: I = None
        self.t: I = None
        self.p: C = None
        self.z: C = None
        self.o: C = None
        self.txt = txt

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

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

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