class A:
    def __init__(self, txt: str):
        self.o: J = None
        self.u: G = None
        self.p: G = None
        self.q: D = None
        self.v: D = None
        self.t: G = None
        self.s: F = None
        self.z: D = None
        self.y: F = None
        self.x: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: C = None
        self.x: J = None
        self.v: F = None
        self.s: C = None
        self.q: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: B = None
        self.z: I = None
        self.x: G = None
        self.p: A = None
        self.w: C = None
        self.y: G = None
        self.r: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: D = None
        self.v: J = None
        self.o: G = None
        self.p: C = None
        self.r: G = None
        self.t: J = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: I = None
        self.o: D = None
        self.w: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: C = None
        self.x: J = None
        self.v: F = None
        self.s: C = None
        self.q: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: B = None
        self.z: I = None
        self.x: G = None
        self.p: A = None
        self.w: C = None
        self.y: G = None
        self.r: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: D = None
        self.v: J = None
        self.o: G = None
        self.p: C = None
        self.r: G = None
        self.t: J = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: I = None
        self.o: D = None
        self.w: G = None
        self.txt = txt

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

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