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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: D = None
        self.z: A = None
        self.o: D = None
        self.r: F = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: D = None
        self.r: A = None
        self.s: C = None
        self.x: A = None
        self.w: C = None
        self.txt = txt

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

b = A("b")
g = B("g")
a = C("a")
n = D("n")
d = E("d")
c = F("c")
h = G("h")
e = F("e")
i = F("i")
j = B("j")

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: D = None
        self.z: A = None
        self.o: D = None
        self.r: F = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: D = None
        self.r: A = None
        self.s: C = None
        self.x: A = None
        self.w: C = None
        self.txt = txt

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

b = A("b")
g = B("g")
a = C("a")
n = D("n")
d = E("d")
c = F("c")
h = G("h")
e = F("e")
i = F("i")
j = B("j")

b.x = n
b.t = n
b.o = a
b.y = c
b.u = h
g.v = e
g.t = b
a.s = i
a.q = n
a.u = e
a.x = d
a.v = b
n.t = i
n.s = d
n.o = h
n.z = j
d.v = e
d.y = n
d.o = n
d.z = b
d.r = i
d.w = g
c.q = h
c.o = n
c.r = b
c.x = b
c.s = a
c.w = a
h.v = i
h.r = n
e.q = h
e.o = n
e.r = b
e.x = b
e.s = a
e.w = a
i.q = h
i.o = n
i.r = b
i.x = b
i.s = a
i.w = a
j.v = e
j.t = b
assert b.o.u.o.o.v.q.v.txt == "i"