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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: H = None
        self.q: C = None
        self.z: G = None
        self.r: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: G = None
        self.s: B = None
        self.v: E = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: H = None
        self.q: C = None
        self.z: G = None
        self.r: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: G = None
        self.s: B = None
        self.v: E = None
        self.x: A = None
        self.txt = txt

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

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

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

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