class A:
    def __init__(self, txt: str):
        self.r: J = None
        self.t: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: F = None
        self.v: F = None
        self.o: A = None
        self.s: H = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: H = None
        self.t: J = None
        self.w: A = None
        self.q: A = None
        self.u: H = None
        self.p: I = None
        self.y: D = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: H = None
        self.q: I = None
        self.x: J = None
        self.t: E = None
        self.z: B = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: H = None
        self.t: F = None
        self.txt = txt

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

n = A("n")
g = B("g")
d = C("d")
i = D("i")
j = E("j")
k = F("k")
a = G("a")
c = H("c")
h = I("h")
m = J("m")

n.r = m
n.t = m
g.x = c
g.s = c
g.y = k
g.v = k
g.o = n
g.w = d
d.u = i
i.q = a
i.o = c
i.x = c
i.y = c
i.w = c
i.z = c
i.s = d
i.r = d
i.u = n
i.p = g
j.v = i
j.y = i
j.o = c
j.u = c
j.x = c
j.t = m
j.w = n
j.q = n
j.p = h
k.p = j
k.u = c
a.s = k
a.w = c
a.q = h
a.x = m
a.t = j
a.z = g
a.p = g
c.w = j
c.v = j
c.o = i
c.x = m
c.p = d
c.u = d
c.q = a
c.r = n
c.s = h
h.o = m
h.s = c
h.t = k
m.q = j
m.w = j
m.o = h
m.t = i
m.s = c
m.x = n
m.p = d
m.r = k
m.v = k
assert a.p.v.p.p.t.txt == "
class A:
    def __init__(self, txt: str):
        self.r: J = None
        self.t: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: F = None
        self.v: F = None
        self.o: A = None
        self.s: H = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: H = None
        self.t: J = None
        self.w: A = None
        self.q: A = None
        self.u: H = None
        self.p: I = None
        self.y: D = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: H = None
        self.q: I = None
        self.x: J = None
        self.t: E = None
        self.z: B = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: H = None
        self.t: F = None
        self.txt = txt

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

n = A("n")
g = B("g")
d = C("d")
i = D("i")
j = E("j")
k = F("k")
a = G("a")
c = H("c")
h = I("h")
m = J("m")

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