class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: D = None
        self.o: H = None
        self.x: H = None
        self.v: B = None
        self.t: F = None
        self.q: E = None
        self.p: E = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: F = None
        self.y: H = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: B = None
        self.s: D = None
        self.o: D = None
        self.p: E = None
        self.u: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: E = None
        self.t: E = None
        self.o: A = None
        self.r: C = None
        self.q: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: F = None
        self.y: H = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: B = None
        self.s: D = None
        self.o: D = None
        self.p: E = None
        self.u: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: E = None
        self.t: E = None
        self.o: A = None
        self.r: C = None
        self.q: B = None
        self.txt = txt

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

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

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

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