class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: I = None
        self.s: H = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.r: J = None
        self.x: G = None
        self.o: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: H = None
        self.v: G = None
        self.r: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: B = None
        self.y: I = None
        self.t: D = None
        self.p: C = None
        self.v: I = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: C = None
        self.p: C = None
        self.o: E = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.r: J = None
        self.x: G = None
        self.o: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: H = None
        self.v: G = None
        self.r: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: B = None
        self.y: I = None
        self.t: D = None
        self.p: C = None
        self.v: I = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: C = None
        self.p: C = None
        self.o: E = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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