class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: F = None
        self.t: D = None
        self.q: D = None
        self.x: F = None
        self.u: C = None
        self.r: H = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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

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

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

k = A("k")
b = B("b")
i = C("i")
m = D("m")
a = E("a")
e = F("e")
h = G("h")
j = H("j")
c = H("c")

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

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

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

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

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

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

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

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

k = A("k")
b = B("b")
i = C("i")
m = D("m")
a = E("a")
e = F("e")
h = G("h")
j = H("j")
c = H("c")

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