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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: H = None
        self.q: G = None
        self.o: F = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: E = None
        self.z: F = None
        self.v: E = None
        self.r: G = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: F = None
        self.z: E = None
        self.p: C = None
        self.r: E = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: F = None
        self.txt = txt

n = A("n")
d = B("d")
h = C("h")
c = D("c")
k = E("k")
i = F("i")
b = G("b")
e = H("e")
j = F("j")

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: H = None
        self.q: G = None
        self.o: F = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: E = None
        self.z: F = None
        self.v: E = None
        self.r: G = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: F = None
        self.z: E = None
        self.p: C = None
        self.r: E = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: F = None
        self.txt = txt

n = A("n")
d = B("d")
h = C("h")
c = D("c")
k = E("k")
i = F("i")
b = G("b")
e = H("e")
j = F("j")

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