class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: E = None
        self.y: G = None
        self.w: B = None
        self.v: D = None
        self.q: A = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: G = None
        self.q: D = None
        self.y: A = None
        self.t: F = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: B = None
        self.w: B = None
        self.v: F = None
        self.s: G = None
        self.z: G = None
        self.y: B = None
        self.txt = txt

f = A("f")
a = B("a")
d = C("d")
b = D("b")
j = E("j")
l = F("l")
g = G("g")
c = G("c")
i = A("i")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: G = None
        self.q: D = None
        self.y: A = None
        self.t: F = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: B = None
        self.w: B = None
        self.v: F = None
        self.s: G = None
        self.z: G = None
        self.y: B = None
        self.txt = txt

f = A("f")
a = B("a")
d = C("d")
b = D("b")
j = E("j")
l = F("l")
g = G("g")
c = G("c")
i = A("i")

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