class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: E = None
        self.p: D = None
        self.s: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: B = None
        self.y: B = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: E = None
        self.z: C = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: D = None
        self.p: B = None
        self.w: A = None
        self.txt = txt

n = A("n")
j = B("j")
h = C("h")
a = D("a")
g = E("g")
k = F("k")
e = G("e")
f = H("f")
l = B("l")

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: B = None
        self.y: B = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: E = None
        self.z: C = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: D = None
        self.p: B = None
        self.w: A = None
        self.txt = txt

n = A("n")
j = B("j")
h = C("h")
a = D("a")
g = E("g")
k = F("k")
e = G("e")
f = H("f")
l = B("l")

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