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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.t: J = None
        self.z: I = None
        self.q: D = None
        self.v: H = None
        self.x: E = None
        self.u: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: B = None
        self.t: J = None
        self.w: B = None
        self.r: D = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: B = None
        self.t: B = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: A = None
        self.z: C = None
        self.p: G = None
        self.t: H = None
        self.x: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: D = None
        self.q: D = None
        self.y: F = None
        self.s: D = None
        self.t: B = None
        self.p: F = None
        self.r: B = None
        self.txt = txt

k = A("k")
l = B("l")
a = C("a")
h = D("h")
m = E("m")
g = F("g")
c = G("c")
e = H("e")
f = I("f")
n = J("n")

k.t = e
k.u = l
k.o = n
k.s = g
k.x = g
k.p = c
l.r = n
l.t = n
l.u = n
l.z = f
l.q = h
l.v = e
l.x = m
a.v = k
a.s = l
a.w = l
a.t = n
a.r = h
a.x = f
h.s = n
h.u = l
h.t = l
h.v = l
m.r = n
m.u = n
m.t = g
m.y = h
m.q = h
m.w = e
m.z = c
m.x = l
m.o = k
m.p = a
g.v = e
g.t = e
g.y = k
g.z = a
g.x = a
g.p = c
c.o = n
c.p = g
c.z = g
c.x = l
c.y = a
c.q = h
e.q = g
e.w = k
f.v = c
f.q = k
n.x = m
n.o = h
n.q = h
n.s = h
n.y = g
n.p = g
n.t = l
n.r = l
assert k.x.y.o.txt == "
class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: B = None
        self.o: J = None
        self.s: F = None
        self.p: G = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.t: J = None
        self.z: I = None
        self.q: D = None
        self.v: H = None
        self.x: E = None
        self.u: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: B = None
        self.t: J = None
        self.w: B = None
        self.r: D = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: B = None
        self.t: B = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: A = None
        self.z: C = None
        self.p: G = None
        self.t: H = None
        self.x: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: D = None
        self.q: D = None
        self.y: F = None
        self.s: D = None
        self.t: B = None
        self.p: F = None
        self.r: B = None
        self.txt = txt

k = A("k")
l = B("l")
a = C("a")
h = D("h")
m = E("m")
g = F("g")
c = G("c")
e = H("e")
f = I("f")
n = J("n")

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