class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.o: F = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: B = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: E = None
        self.r: A = None
        self.t: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: D = None
        self.q: D = None
        self.y: F = None
        self.w: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: B = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: E = None
        self.r: A = None
        self.t: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: D = None
        self.q: D = None
        self.y: F = None
        self.w: C = None
        self.txt = txt

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

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