class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: F = None
        self.s: E = None
        self.r: J = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: G = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: E = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: I = None
        self.w: D = None
        self.u: I = None
        self.s: B = None
        self.q: C = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.x: A = None
        self.y: G = None
        self.txt = txt

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

i.x = n
i.p = n
i.s = h
i.r = d
i.y = b
g.v = i
g.w = f
g.q = e
e.x = i
l.v = f
l.w = f
h.w = b
n.s = d
n.t = h
n.y = l
f.p = i
f.x = b
f.u = b
f.w = l
f.s = g
f.q = e
f.t = n
j.o = i
j.w = d
b.s = h
b.q = g
b.p = g
b.t = g
b.w = e
d.u = i
d.x = i
d.r = e
d.y = f
assert i.s.w.s.w.p.q.x.x.y.v.txt == "
class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: F = None
        self.s: E = None
        self.r: J = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: G = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: E = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: I = None
        self.w: D = None
        self.u: I = None
        self.s: B = None
        self.q: C = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.x: A = None
        self.y: G = None
        self.txt = txt

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

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