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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: C = None
        self.p: F = None
        self.r: G = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: E = None
        self.v: G = None
        self.y: B = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: G = None
        self.v: C = None
        self.z: E = None
        self.t: A = None
        self.x: E = None
        self.p: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: E = None
        self.z: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: C = None
        self.p: F = None
        self.r: G = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: E = None
        self.v: G = None
        self.y: B = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: G = None
        self.v: C = None
        self.z: E = None
        self.t: A = None
        self.x: E = None
        self.p: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: E = None
        self.z: E = None
        self.txt = txt

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

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