class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: G = None
        self.x: C = None
        self.q: B = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: F = None
        self.p: G = None
        self.s: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: E = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: G = None
        self.v: D = None
        self.r: E = None
        self.o: F = None
        self.p: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: F = None
        self.p: G = None
        self.s: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: E = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: G = None
        self.v: D = None
        self.r: E = None
        self.o: F = None
        self.p: D = None
        self.txt = txt

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

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