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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: E = None
        self.z: D = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: G = None
        self.s: H = None
        self.z: H = None
        self.t: B = None
        self.r: C = None
        self.w: A = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: D = None
        self.y: D = None
        self.u: A = None
        self.t: C = None
        self.w: B = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: E = None
        self.z: D = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: G = None
        self.s: H = None
        self.z: H = None
        self.t: B = None
        self.r: C = None
        self.w: A = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: D = None
        self.y: D = None
        self.u: A = None
        self.t: C = None
        self.w: B = None
        self.r: B = None
        self.txt = txt

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

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

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