#!/usr/bin/ruby
# coding: utf-8
def hantei(a, b, c, d)
  if 
