class A:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: E = None
        self.v: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: H = None
        self.u: A = None
        self.y: B = None
        self.w: H = None
        self.r: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: I = None
        self.o: A = None
        self.z: E = None
        self.u: F = None
        self.r: B = None
        self.w: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: H = None
        self.u: A = None
        self.y: B = None
        self.w: H = None
        self.r: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: I = None
        self.o: A = None
        self.z: E = None
        self.u: F = None
        self.r: B = None
        self.w: D = None
        self.txt = txt

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

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