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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: B = None
        self.o: E = None
        self.y: E = None
        self.s: G = None
        self.t: B = None
        self.p: B = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: A = None
        self.y: G = None
        self.z: F = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: B = None
        self.t: B = None
        self.r: A = None
        self.y: E = None
        self.q: B = None
        self.txt = txt

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

k = A("k")
c = B("c")
a = C("a")
j = D("j")
b = E("b")
h = F("h")
f = G("f")
i = H("i")
l = F("l")
n = A("n")

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: B = None
        self.o: E = None
        self.y: E = None
        self.s: G = None
        self.t: B = None
        self.p: B = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: A = None
        self.y: G = None
        self.z: F = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: B = None
        self.t: B = None
        self.r: A = None
        self.y: E = None
        self.q: B = None
        self.txt = txt

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

k = A("k")
c = B("c")
a = C("a")
j = D("j")
b = E("b")
h = F("h")
f = G("f")
i = H("i")
l = F("l")
n = A("n")

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