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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: G = None
        self.r: C = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: D = None
        self.v: A = None
        self.t: D = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: E = None
        self.q: D = None
        self.z: D = None
        self.w: B = None
        self.r: E = None
        self.u: F = None
        self.txt = txt

b = A("b")
g = B("g")
j = C("j")
i = D("i")
n = E("n")
f = F("f")
h = G("h")
l = F("l")
c = G("c")
k = B("k")

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: G = None
        self.r: C = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: D = None
        self.v: A = None
        self.t: D = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: E = None
        self.q: D = None
        self.z: D = None
        self.w: B = None
        self.r: E = None
        self.u: F = None
        self.txt = txt

b = A("b")
g = B("g")
j = C("j")
i = D("i")
n = E("n")
f = F("f")
h = G("h")
l = F("l")
c = G("c")
k = B("k")

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