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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.p: F = None
        self.s: A = None
        self.v: A = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: E = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.y: E = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: F = None
        self.y: D = None
        self.u: H = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: E = None
        self.v: A = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: A = None
        self.x: A = None
        self.q: H = None
        self.p: H = None
        self.r: B = None
        self.v: A = None
        self.u: I = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: G = None
        self.r: E = None
        self.v: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.p: F = None
        self.s: A = None
        self.v: A = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: E = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.y: E = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: F = None
        self.y: D = None
        self.u: H = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: E = None
        self.v: A = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: A = None
        self.x: A = None
        self.q: H = None
        self.p: H = None
        self.r: B = None
        self.v: A = None
        self.u: I = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: G = None
        self.r: E = None
        self.v: G = None
        self.txt = txt

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

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

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

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