class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: I = None
        self.w: H = None
        self.p: H = None
        self.r: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: J = None
        self.x: I = None
        self.r: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: A = None
        self.y: I = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: H = None
        self.y: C = None
        self.t: I = None
        self.v: D = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: D = None
        self.r: H = None
        self.u: C = None
        self.x: C = None
        self.v: F = None
        self.y: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: C = None
        self.w: B = None
        self.p: B = None
        self.s: A = None
        self.u: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: J = None
        self.x: I = None
        self.r: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: A = None
        self.y: I = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: H = None
        self.y: C = None
        self.t: I = None
        self.v: D = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: D = None
        self.r: H = None
        self.u: C = None
        self.x: C = None
        self.v: F = None
        self.y: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: C = None
        self.w: B = None
        self.p: B = None
        self.s: A = None
        self.u: H = None
        self.txt = txt

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

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