class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: C = None
        self.s: C = None
        self.u: D = None
        self.t: D = None
        self.r: F = None
        self.v: J = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: A = None
        self.x: G = None
        self.u: F = None
        self.o: A = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: G = None
        self.q: F = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: D = None
        self.q: I = None
        self.s: I = None
        self.x: E = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: H = None
        self.z: H = None
        self.o: H = None
        self.y: J = None
        self.w: J = None
        self.v: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: D = None
        self.v: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: A = None
        self.x: D = None
        self.p: D = None
        self.s: I = None
        self.q: E = None
        self.y: B = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: A = None
        self.x: G = None
        self.u: F = None
        self.o: A = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: G = None
        self.q: F = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: D = None
        self.q: I = None
        self.s: I = None
        self.x: E = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: H = None
        self.z: H = None
        self.o: H = None
        self.y: J = None
        self.w: J = None
        self.v: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: D = None
        self.v: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: A = None
        self.x: D = None
        self.p: D = None
        self.s: I = None
        self.q: E = None
        self.y: B = None
        self.t: E = None
        self.txt = txt

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

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