class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: E = None
        self.t: E = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: C = None
        self.o: A = None
        self.s: C = None
        self.x: B = None
        self.v: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: G = None
        self.p: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: A = None
        self.r: G = None
        self.x: D = None
        self.txt = txt

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

h = A("h")
g = B("g")
j = C("j")
m = D("m")
d = E("d")
e = F("e")
c = G("c")
i = D("i")
a = B("a")

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: C = None
        self.o: A = None
        self.s: C = None
        self.x: B = None
        self.v: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: G = None
        self.p: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: A = None
        self.r: G = None
        self.x: D = None
        self.txt = txt

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

h = A("h")
g = B("g")
j = C("j")
m = D("m")
d = E("d")
e = F("e")
c = G("c")
i = D("i")
a = B("a")

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