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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: D = None
        self.q: F = None
        self.v: A = None
        self.o: B = None
        self.t: F = None
        self.x: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: G = None
        self.q: G = None
        self.s: B = None
        self.o: F = None
        self.x: E = None
        self.r: C = None
        self.txt = txt

e = A("e")
k = B("k")
b = C("b")
m = D("m")
d = E("d")
c = F("c")
j = G("j")
l = G("l")
h = G("h")

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: D = None
        self.q: F = None
        self.v: A = None
        self.o: B = None
        self.t: F = None
        self.x: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: G = None
        self.q: G = None
        self.s: B = None
        self.o: F = None
        self.x: E = None
        self.r: C = None
        self.txt = txt

e = A("e")
k = B("k")
b = C("b")
m = D("m")
d = E("d")
c = F("c")
j = G("j")
l = G("l")
h = G("h")

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