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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: E = None
        self.w: H = None
        self.u: D = None
        self.p: A = None
        self.o: F = None
        self.y: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: E = None
        self.y: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: E = None
        self.w: H = None
        self.u: D = None
        self.p: A = None
        self.o: F = None
        self.y: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: E = None
        self.y: D = None
        self.txt = txt

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

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

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