class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: F = None
        self.w: H = None
        self.z: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: G = None
        self.p: A = None
        self.s: C = None
        self.v: B = None
        self.t: E = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: B = None
        self.v: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: B = None
        self.r: A = None
        self.t: B = None
        self.txt = txt

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

a = A("a")
d = B("d")
h = C("h")
b = D("b")
k = E("k")
g = F("g")
l = G("l")
f = H("f")
m = C("m")
j = A("j")

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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: G = None
        self.p: A = None
        self.s: C = None
        self.v: B = None
        self.t: E = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: B = None
        self.v: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: B = None
        self.r: A = None
        self.t: B = None
        self.txt = txt

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

a = A("a")
d = B("d")
h = C("h")
b = D("b")
k = E("k")
g = F("g")
l = G("l")
f = H("f")
m = C("m")
j = A("j")

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