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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.t: B = None
        self.z: H = None
        self.u: C = None
        self.p: A = None
        self.q: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: B = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.t: B = None
        self.z: H = None
        self.u: C = None
        self.p: A = None
        self.q: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: B = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

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

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