class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: C = None
        self.z: E = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: H = None
        self.o: H = None
        self.v: G = None
        self.x: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: C = None
        self.z: E = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: H = None
        self.o: H = None
        self.v: G = None
        self.x: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

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