class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: B = None
        self.p: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: G = None
        self.s: G = None
        self.o: E = None
        self.r: A = None
        self.q: E = None
        self.v: D = None
        self.y: J = None
        self.w: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: E = None
        self.q: F = None
        self.t: D = None
        self.p: H = None
        self.s: A = None
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: F = None
        self.o: A = None
        self.t: C = None
        self.x: B = None
        self.u: G = None
        self.w: A = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: G = None
        self.s: G = None
        self.o: E = None
        self.r: A = None
        self.q: E = None
        self.v: D = None
        self.y: J = None
        self.w: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: E = None
        self.q: F = None
        self.t: D = None
        self.p: H = None
        self.s: A = None
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: F = None
        self.o: A = None
        self.t: C = None
        self.x: B = None
        self.u: G = None
        self.w: A = None
        self.v: A = None
        self.txt = txt

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

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