class A:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: J = None
        self.o: E = None
        self.u: E = None
        self.x: G = None
        self.p: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: I = None
        self.v: G = None
        self.z: H = None
        self.u: I = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: G = None
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: I = None
        self.v: G = None
        self.z: H = None
        self.u: I = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: G = None
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.txt = txt

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

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