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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: A = None
        self.z: F = None
        self.q: E = None
        self.w: E = None
        self.p: C = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: E = None
        self.w: G = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: H = None
        self.s: F = None
        self.x: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: F = None
        self.z: E = None
        self.t: C = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: A = None
        self.z: F = None
        self.q: E = None
        self.w: E = None
        self.p: C = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: E = None
        self.w: G = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: H = None
        self.s: F = None
        self.x: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: F = None
        self.z: E = None
        self.t: C = None
        self.y: G = None
        self.txt = txt

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

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