class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: F = None
        self.u: C = None
        self.s: D = None
        self.x: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: A = None
        self.v: A = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: F = None
        self.p: A = None
        self.v: D = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: A = None
        self.v: A = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: F = None
        self.p: A = None
        self.v: D = None
        self.t: F = None
        self.txt = txt

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

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

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

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