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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: E = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: A = None
        self.y: A = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: D = None
        self.z: E = None
        self.o: H = None
        self.p: E = None
        self.v: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: E = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: A = None
        self.y: A = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: D = None
        self.z: E = None
        self.o: H = None
        self.p: E = None
        self.v: E = None
        self.txt = txt

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

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

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