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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: E = None
        self.s: D = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: E = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: G = None
        self.t: A = None
        self.u: B = None
        self.z: D = None
        self.s: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: E = None
        self.s: D = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: E = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: G = None
        self.t: A = None
        self.u: B = None
        self.z: D = None
        self.s: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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