class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: I = None
        self.t: I = None
        self.x: I = None
        self.w: C = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

n = A("n")
k = B("k")
c = C("c")
j = D("j")
i = E("i")
a = F("a")
b = G("b")
d = H("d")
l = I("l")
g = B("g")

n.q = j
k.v = i
k.o = l
k.t = l
k.x = l
k.w = c
k.u = n
c.u = j
c.t = b
c.x = b
c.w = n
c.v = n
j.s = b
i.r = c
i.o = n
a.o = j
b.v = g
b.s = n
b.w = l
b.p = d
b.r = k
b.y = a
d.p = b
l.x = a
g.v = i
g.o = l
g.t = l
g.x = l
g.w = c
g.u = n
assert g.o.x.o.s.y.o.s.txt == "
class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: I = None
        self.t: I = None
        self.x: I = None
        self.w: C = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

n = A("n")
k = B("k")
c = C("c")
j = D("j")
i = E("i")
a = F("a")
b = G("b")
d = H("d")
l = I("l")
g = B("g")

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