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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: A = None
        self.x: A = None
        self.p: J = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: H = None
        self.x: J = None
        self.y: H = None
        self.v: I = None
        self.r: B = None
        self.o: I = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.v: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: G = None
        self.s: D = None
        self.z: D = None
        self.v: B = None
        self.r: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: C = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: A = None
        self.x: A = None
        self.p: J = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: H = None
        self.x: J = None
        self.y: H = None
        self.v: I = None
        self.r: B = None
        self.o: I = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.v: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: G = None
        self.s: D = None
        self.z: D = None
        self.v: B = None
        self.r: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: C = None
        self.s: C = None
        self.txt = txt

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

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