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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: J = None
        self.z: D = None
        self.y: H = None
        self.q: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: J = None
        self.w: J = None
        self.v: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: I = None
        self.w: H = None
        self.t: B = None
        self.r: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: J = None
        self.z: D = None
        self.y: H = None
        self.q: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: J = None
        self.w: J = None
        self.v: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: I = None
        self.w: H = None
        self.t: B = None
        self.r: E = None
        self.txt = txt

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

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