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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: A = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: A = None
        self.v: A = None
        self.txt = txt

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

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

g.q = l
g.u = m
g.y = n
g.w = n
g.v = h
m.x = d
m.v = a
m.w = n
e.r = n
e.t = n
l.t = h
l.v = n
l.s = i
l.q = d
i.y = d
d.o = i
d.q = n
d.v = n
h.o = l
n.q = l
n.u = m
n.y = g
n.w = g
n.v = h
a.o = i
a.q = n
a.v = n
assert i.y.v.v.o.t.o.txt == "l"