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

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: C = None
        self.x: A = None
        self.r: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: B = None
        self.u: E = None
        self.v: C = None
        self.txt = txt

k = A("k")
c = B("c")
n = C("n")
e = D("e")
b = E("b")
j = F("j")
m = G("m")
g = D("g")
f = A("f")
h = E("h")

k.u = e
k.t = e
k.v = n
k.o = h
k.x = m
k.z = m
k.y = j
c.x = e
c.w = k
n.u = j
n.p = j
n.z = f
n.s = c
n.x = b
n.w = g
n.o = g
e.v = c
e.r = c
e.t = n
e.x = k
b.y = k
b.v = m
b.r = m
b.t = j
b.u = e
b.x = n
b.z = f
j.w = c
j.q = n
j.z = e
j.s = m
m.q = h
m.u = h
m.w = c
m.v = n
g.v = c
g.r = c
g.t = n
g.x = f
f.u = e
f.v = n
f.o = b
f.x = m
f.z = m
f.y = j
f.t = g
h.y = f
h.v = m
h.r = m
h.t = j
h.u = g
h.x = n
h.z = k
assert e.t.s.x.txt == "
class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: C = None
        self.o: E = None
        self.x: G = None
        self.z: G = None
        self.y: F = None
        self.t: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: C = None
        self.x: A = None
        self.r: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: B = None
        self.u: E = None
        self.v: C = None
        self.txt = txt

k = A("k")
c = B("c")
n = C("n")
e = D("e")
b = E("b")
j = F("j")
m = G("m")
g = D("g")
f = A("f")
h = E("h")

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