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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: E = None
        self.t: D = None
        self.p: A = None
        self.q: F = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.p: H = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: F = None
        self.q: D = None
        self.w: E = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: F = None
        self.z: E = None
        self.t: F = None
        self.o: F = None
        self.v: I = None
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: E = None
        self.t: D = None
        self.p: A = None
        self.q: F = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.p: H = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: F = None
        self.q: D = None
        self.w: E = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: F = None
        self.z: E = None
        self.t: F = None
        self.o: F = None
        self.v: I = None
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

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