class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: F = None
        self.u: B = None
        self.s: H = None
        self.t: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: D = None
        self.w: H = None
        self.p: E = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: G = None
        self.p: G = None
        self.x: C = None
        self.s: E = None
        self.z: E = None
        self.v: E = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: E = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: G = None
        self.u: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: D = None
        self.w: H = None
        self.p: E = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: G = None
        self.p: G = None
        self.x: C = None
        self.s: E = None
        self.z: E = None
        self.v: E = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: E = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: G = None
        self.u: E = None
        self.txt = txt

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

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