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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: E = None
        self.w: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: C = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: B = None
        self.s: C = None
        self.q: I = None
        self.t: C = None
        self.o: A = None
        self.u: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.o: F = None
        self.p: G = None
        self.y: A = None
        self.r: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: E = None
        self.w: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: C = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: B = None
        self.s: C = None
        self.q: I = None
        self.t: C = None
        self.o: A = None
        self.u: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.o: F = None
        self.p: G = None
        self.y: A = None
        self.r: D = None
        self.txt = txt

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

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

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