class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: E = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: G = None
        self.z: C = None
        self.u: I = None
        self.x: A = None
        self.o: J = None
        self.v: D = None
        self.y: G = None
        self.r: F = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: F = None
        self.s: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: C = None
        self.p: G = None
        self.u: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: A = None
        self.y: F = None
        self.w: A = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.x: A = None
        self.p: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: B = None
        self.x: C = None
        self.q: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: G = None
        self.z: C = None
        self.u: I = None
        self.x: A = None
        self.o: J = None
        self.v: D = None
        self.y: G = None
        self.r: F = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: F = None
        self.s: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: C = None
        self.p: G = None
        self.u: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: A = None
        self.y: F = None
        self.w: A = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.x: A = None
        self.p: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: B = None
        self.x: C = None
        self.q: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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