class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.v: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: H = None
        self.v: D = None
        self.r: H = None
        self.p: G = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: B = None
        self.p: F = None
        self.u: H = None
        self.z: G = None
        self.r: A = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: H = None
        self.v: D = None
        self.r: H = None
        self.p: G = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: B = None
        self.p: F = None
        self.u: H = None
        self.z: G = None
        self.r: A = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: F = None
        self.txt = txt

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

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

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

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