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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: A = None
        self.s: E = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: H = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: C = None
        self.x: C = None
        self.r: A = None
        self.v: B = None
        self.p: C = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: B = None
        self.r: A = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

m = A("m")
c = B("c")
d = C("d")
g = D("g")
j = E("j")
k = F("k")
b = G("b")
n = H("n")
i = A("i")

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: A = None
        self.s: E = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: H = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: C = None
        self.x: C = None
        self.r: A = None
        self.v: B = None
        self.p: C = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: B = None
        self.r: A = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

m = A("m")
c = B("c")
d = C("d")
g = D("g")
j = E("j")
k = F("k")
b = G("b")
n = H("n")
i = A("i")

m.y = d
m.u = i
m.t = i
m.x = i
m.p = j
m.q = j
c.r = d
d.u = k
d.v = k
d.x = i
d.s = j
g.p = j
g.x = n
g.v = i
j.u = n
j.y = d
j.x = d
j.p = d
j.r = m
j.v = c
j.w = c
k.x = d
k.v = d
k.z = d
k.w = n
k.p = n
k.q = g
k.s = c
k.u = m
b.t = k
b.u = c
b.z = c
b.r = i
n.v = k
i.y = d
i.u = m
i.t = m
i.x = m
i.p = j
i.q = j
assert c.r.x.y.u.x.s.txt == "j"