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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: A = None
        self.v: A = None
        self.y: G = None
        self.t: J = None
        self.u: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: C = None
        self.y: H = None
        self.w: E = None
        self.p: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: G = None
        self.p: I = None
        self.x: J = None
        self.r: C = None
        self.o: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: G = None
        self.x: A = None
        self.s: G = None
        self.z: B = None
        self.q: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: A = None
        self.v: A = None
        self.y: G = None
        self.t: J = None
        self.u: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: C = None
        self.y: H = None
        self.w: E = None
        self.p: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: G = None
        self.p: I = None
        self.x: J = None
        self.r: C = None
        self.o: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: G = None
        self.x: A = None
        self.s: G = None
        self.z: B = None
        self.q: H = None
        self.txt = txt

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

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