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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: J = None
        self.p: J = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: J = None
        self.p: J = None
        self.txt = txt

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

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

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

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

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

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

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

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

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