class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: C = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: D = None
        self.r: B = None
        self.t: C = None
        self.y: H = None
        self.s: C = None
        self.u: G = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: C = None
        self.o: C = None
        self.q: H = None
        self.w: A = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: D = None
        self.r: B = None
        self.t: C = None
        self.y: H = None
        self.s: C = None
        self.u: G = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: C = None
        self.o: C = None
        self.q: H = None
        self.w: A = None
        self.z: C = None
        self.txt = txt

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

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

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