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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: E = None
        self.s: B = None
        self.q: C = None
        self.u: G = None
        self.p: H = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: E = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: F = None
        self.r: I = None
        self.q: E = None
        self.v: B = None
        self.o: D = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: B = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: E = None
        self.s: B = None
        self.q: C = None
        self.u: G = None
        self.p: H = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: E = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: F = None
        self.r: I = None
        self.q: E = None
        self.v: B = None
        self.o: D = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: B = None
        self.t: F = None
        self.txt = txt

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

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