class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: H = None
        self.y: E = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: D = None
        self.s: H = None
        self.w: D = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: H = None
        self.x: I = None
        self.w: F = None
        self.o: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: I = None
        self.z: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: D = None
        self.p: F = None
        self.q: F = None
        self.y: D = None
        self.z: D = None
        self.s: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: D = None
        self.s: H = None
        self.w: D = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: H = None
        self.x: I = None
        self.w: F = None
        self.o: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: I = None
        self.z: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: D = None
        self.p: F = None
        self.q: F = None
        self.y: D = None
        self.z: D = None
        self.s: A = None
        self.txt = txt

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

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