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

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: D = None
        self.v: G = None
        self.u: H = None
        self.w: G = None
        self.r: F = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: F = None
        self.p: E = None
        self.q: G = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: B = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: E = None
        self.p: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: G = None
        self.x: C = None
        self.w: D = None
        self.t: D = None
        self.z: B = None
        self.r: G = None
        self.q: D = None
        self.txt = txt

c = A("c")
a = B("a")
i = C("i")
n = D("n")
f = E("f")
g = F("g")
h = G("h")
m = H("m")
j = H("j")

c.s = a
c.x = a
a.p = n
a.t = g
i.s = h
i.v = h
i.w = h
i.q = n
i.t = n
i.u = j
i.r = g
n.u = h
n.q = h
n.w = g
n.p = f
n.v = c
f.y = c
f.q = c
f.v = a
g.t = m
g.u = f
g.p = j
h.q = f
h.w = a
h.z = j
h.s = g
m.o = j
m.s = h
m.r = h
m.x = i
m.w = n
m.t = n
m.q = n
m.z = a
j.o = m
j.s = h
j.r = h
j.x = i
j.w = n
j.t = n
j.q = n
j.z = a
assert c.s.t.u.y.x.t.u.y.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: D = None
        self.v: G = None
        self.u: H = None
        self.w: G = None
        self.r: F = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: F = None
        self.p: E = None
        self.q: G = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: B = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: E = None
        self.p: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: G = None
        self.x: C = None
        self.w: D = None
        self.t: D = None
        self.z: B = None
        self.r: G = None
        self.q: D = None
        self.txt = txt

c = A("c")
a = B("a")
i = C("i")
n = D("n")
f = E("f")
g = F("g")
h = G("h")
m = H("m")
j = H("j")

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