<gh_stars>1-10
#!/usr/bin/env python3

import math


if __name__ == "__main__":
    AB = int(input())
    BC = int(input())

    print(str(round(math.degrees(math.atan2(AB, BC))))+u'\N{DEGREE SIGN}')


#!/usr/bin/env python3

import math


if __name__ == "__main__":
    AB = int(input())
    BC = int(input())

    print(str(round(math.degrees(math.atan2(AB, BC))))+u'\N{DEGREE SIGN}')
#!/usr/bin/env python3